Pass Grid's data source as props + Add GridEmpty for error messages.

This commit is contained in:
2020-11-03 14:19:24 +01:00
parent 3e4bbb1566
commit 45230db737
4 changed files with 67 additions and 18 deletions

22
components/GridEmpty.vue Normal file
View File

@@ -0,0 +1,22 @@
<template>
<div
class="bg-gray-500 text-white text-sm font-bold px-4 py-3 w-1/2 mx-auto"
role="alert"
>
<p>{{ message }}</p>
</div>
</template>
<script>
export default {
name: "GridEmpty",
props: {
message: {
type: String,
default: "0 items to be shown."
}
}
};
</script>
<style></style>