+
+
+
+
+
+
{}
+ default: () => {
+ }
},
filterQuery: {
type: String,
@@ -142,7 +159,9 @@
colorClasses: {},
filterText: '',
dataCount: 0,
- css: DataTableStyles
+ css: DataTableStyles,
+ loading: false,
+ noDataTemplate: ''
}
},
computed: {
@@ -251,6 +270,16 @@
pagination: pagination,
data: data.slice(pagination.from - 1, pagination.to)
}
+ },
+ onLoading () {
+ this.noDataTemplate = ''
+ this.loading = true
+ this.$emit('vuestic:loading')
+ },
+ onLoaded () {
+ this.noDataTemplate = this.$t('tables.dataTable.noDataAvailable')
+ this.loading = false
+ this.$emit('vuestic:loaded')
}
}
}
@@ -258,6 +287,8 @@