This commit is contained in:
2020-01-29 18:27:38 +00:00
parent 27d1c25a93
commit b46030654f
2 changed files with 18 additions and 13 deletions

View File

@@ -4,6 +4,7 @@
<div>apiBaseUrl: {{ apiBaseUrl }}</div> <div>apiBaseUrl: {{ apiBaseUrl }}</div>
<div>formKey: {{ formKey }}</div> <div>formKey: {{ formKey }}</div>
<div>dataListKey: {{ dataListKey }}</div> <div>dataListKey: {{ dataListKey }}</div>
<div>dataFilterId: {{ dataFilterId }}</div>
<div>viewPort is XS: {{ isXS() }}</div> <div>viewPort is XS: {{ isXS() }}</div>
<v-data-table <v-data-table
:caption="caption" :caption="caption"
@@ -41,18 +42,11 @@ export default {
}, },
formKey: String, formKey: String,
dataListKey: String, dataListKey: String,
caption: String caption: String,
// , dataFilterId: {
// rowsPerPage: { type: Number,
// type: Number, default: 0
// default: 100 }
// }
// likes: Number,
// isPublished: Boolean,
// commentIds: Array,
// author: Object,
// callback: Function,
// contactsPromise: Promise // or any other constructor
}, },
methods: { methods: {
isXS() { isXS() {

View File

@@ -3,7 +3,8 @@
<gz-data-table <gz-data-table
formKey="test-widgets" formKey="test-widgets"
dataListKey="TestWidgetDataList" dataListKey="TestWidgetDataList"
caption="Test Widget table" :caption="getCaption()"
:dataFilterId="currentDataFilterId"
> >
</gz-data-table> </gz-data-table>
</v-container> </v-container>
@@ -24,6 +25,16 @@ export default {
//, //,
//helpUrl: "form-inv-parts" //helpUrl: "form-inv-parts"
}); });
},
data() {
return {
currentDataFilterId: 0
};
},
methods: {
getCaption() {
return window.$gz.locale.get("WidgetList");
}
} }
}; };
</script> </script>