ColumnWrapper.vue
2 years ago
CxVuiCollapseMini.vue
2 years ago
CxVuiDate.vue
2 years ago
CxVuiFSelect.vue
2 years ago
CxVuiPopup.vue
2 years ago
CxVuiSelect.vue
2 years ago
CxVuiTabs.vue
2 years ago
CxVuiTabsPanel.vue
2 years ago
Delimiter.vue
2 years ago
DetailsTable.vue
2 years ago
DetailsTableRow.vue
2 years ago
DetailsTableRowValue.vue
2 years ago
ExternalLink.vue
2 years ago
ListComponents.vue
2 years ago
PrintButton.vue
2 years ago
RowWrapper.vue
2 years ago
Tooltip.vue
2 years ago
PrintButton.vue
38 lines
| 1 | <template> |
| 2 | <cx-vui-button |
| 3 | @click="print" |
| 4 | button-style="accent" |
| 5 | size="mini" |
| 6 | > |
| 7 | <template #label> |
| 8 | <template v-if="$slots.default"> |
| 9 | <slot></slot> |
| 10 | </template> |
| 11 | <template v-else> |
| 12 | {{ __( 'Print', 'jet-form-builder' ) }} |
| 13 | </template> |
| 14 | </template> |
| 15 | </cx-vui-button> |
| 16 | </template> |
| 17 | |
| 18 | <script> |
| 19 | import i18n from '../mixins/i18n'; |
| 20 | |
| 21 | export default { |
| 22 | name: 'PrintButton', |
| 23 | methods: { |
| 24 | print() { |
| 25 | window.print(); |
| 26 | }, |
| 27 | }, |
| 28 | mixins: [ i18n ], |
| 29 | }; |
| 30 | </script> |
| 31 | |
| 32 | <style scoped> |
| 33 | @media print { |
| 34 | .cx-vui-button { |
| 35 | display: none; |
| 36 | } |
| 37 | } |
| 38 | </style> |