summaryrefslogtreecommitdiff
path: root/src/components/Global/TableToolbar.vue
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2020-04-29 20:52:39 +0300
committerDerick Montague <derick.montague@ibm.com>2020-05-05 07:25:19 +0300
commitb1a7191eb287fe92c82d3346f2a9587e41c62d2b (patch)
treefef7e2b1f08703233183fd2c86dccb4ba193af0b /src/components/Global/TableToolbar.vue
parent3be801aa07ed85c8a90eb6f53a807a1cc57cdaa9 (diff)
downloadwebui-vue-b1a7191eb287fe92c82d3346f2a9587e41c62d2b.tar.xz
Add export functionality to Sensors page
- Create TableToolbarExport component to be used as a slot in TableToolbar - Allows selected table items to be exported Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I929347e046af8a5d5188e4c4fd9fc874e067cce5
Diffstat (limited to 'src/components/Global/TableToolbar.vue')
-rw-r--r--src/components/Global/TableToolbar.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Global/TableToolbar.vue b/src/components/Global/TableToolbar.vue
index 041a9c18..331f0076 100644
--- a/src/components/Global/TableToolbar.vue
+++ b/src/components/Global/TableToolbar.vue
@@ -15,6 +15,7 @@
>
{{ action.label }}
</b-button>
+ <slot name="export"></slot>
<b-button
variant="primary"
class="d-block"
@@ -38,7 +39,7 @@ export default {
},
actions: {
type: Array,
- required: true,
+ default: () => [],
validator: prop => {
return prop.every(action => {
return (