jetformbuilder
/
assets
/
src
/
admin-vuex-package
/
components
/
BoxActions
/
ShowOverflowTable.vue
ActionButton.vue
2 years ago
BoxActions.vue
2 years ago
EditTableSwitcher.vue
2 years ago
RedirectToSingle.vue
2 years ago
ShowOverflowTable.vue
2 years ago
UndoChangesTable.vue
2 years ago
ShowOverflowTable.vue
36 lines
| 1 | <template> |
| 2 | <cx-vui-switcher |
| 3 | class="jfb-cx-vui-component" |
| 4 | v-if="showOverflowControl" |
| 5 | :label="__( 'Show overflow', 'jet-form-builder' )" |
| 6 | v-model="showOverflow" |
| 7 | ></cx-vui-switcher> |
| 8 | </template> |
| 9 | |
| 10 | <script> |
| 11 | import ScopeStoreMixin from '../../mixins/ScopeStoreMixin'; |
| 12 | |
| 13 | const { i18n } = JetFBMixins; |
| 14 | |
| 15 | export default { |
| 16 | name: 'ShowOverflowTable', |
| 17 | mixins: [ ScopeStoreMixin, i18n ], |
| 18 | computed: { |
| 19 | showOverflowControl() { |
| 20 | return this.getter( 'options/showOverflowControl' ); |
| 21 | }, |
| 22 | showOverflow: { |
| 23 | get() { |
| 24 | return this.getter( 'options/isShowOverflow' ); |
| 25 | }, |
| 26 | set() { |
| 27 | this.commit( 'options/toggleShowOverflow' ); |
| 28 | } |
| 29 | } |
| 30 | }, |
| 31 | }; |
| 32 | </script> |
| 33 | |
| 34 | <style> |
| 35 | |
| 36 | </style> |