@modeltables/fontawesome-vuetify 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -23
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,33 +11,20 @@ pnpm add @modeltables/fontawesome-vuetify
|
|
|
11
11
|
1. Create Header and DataItem Model
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
import { HeaderModel } from "@modeltables/fontawesome-vuetify";
|
|
15
|
-
|
|
16
14
|
export const header: HeaderModel[] = [
|
|
17
15
|
{
|
|
18
|
-
title: '
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
title: 'Price'
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
title: 'Order Name'
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
title: 'Order Description'
|
|
16
|
+
title: 'Name'
|
|
28
17
|
},
|
|
29
18
|
{
|
|
30
|
-
title: '
|
|
19
|
+
title: 'Description'
|
|
31
20
|
}
|
|
32
21
|
];
|
|
33
22
|
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
PaymentDate?: Date;
|
|
40
|
-
];
|
|
23
|
+
export class ExampleModel {
|
|
24
|
+
Id: number = 0;
|
|
25
|
+
Name?: string;
|
|
26
|
+
Description?: string;
|
|
27
|
+
}
|
|
41
28
|
```
|
|
42
29
|
|
|
43
30
|
2. Import table component
|
|
@@ -46,15 +33,13 @@ export const header: ExampleModel[] = [
|
|
|
46
33
|
<Table
|
|
47
34
|
v-if="dataItems.length"
|
|
48
35
|
:options="{
|
|
49
|
-
Key: '
|
|
36
|
+
Key: 'Id',
|
|
50
37
|
Active: false,
|
|
51
38
|
ShowKey: true
|
|
52
39
|
}"
|
|
53
40
|
:dataheader="dataheader"
|
|
54
41
|
:showFilters="true"
|
|
55
42
|
:loading="loading"
|
|
56
|
-
:pagination="pagination"
|
|
57
|
-
v-bind:currentItem="currentItem"
|
|
58
43
|
:dataItems="dataItems"
|
|
59
44
|
:crud="false"
|
|
60
45
|
@load="load($event)"
|