@modeltables/fontawesome-vuetify 2.9.0 → 3.0.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.
Files changed (2) hide show
  1. package/README.md +34 -24
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,32 +8,12 @@ pnpm add @modeltables/fontawesome-vuetify
8
8
 
9
9
  --Quick start
10
10
 
11
- 1. Import table component
12
- ```ts
13
- <Table
14
- v-if="dataItems.length"
15
- :options="{
16
- Key: 'OrderNumber',
17
- Active: false,
18
- ShowKey: true
19
- }"
20
- :dataheader="dataheader"
21
- :showFilters="true"
22
- :loading="loading"
23
- :pagination="pagination"
24
- v-bind:currentItem="currentItem"
25
- :dataItems="dataItems"
26
- :crud="false"
27
- @load="load($event)"
28
- @search="search($event)"
29
- @rowClick="updateItem($event)">
30
- ```
31
- 2. Create Typed Model
11
+ 1. Create Header and DataItem Model
32
12
 
33
13
  ```ts
34
14
  import { HeaderModel } from "@modeltables/fontawesome-vuetify";
35
15
 
36
- export const paymentHeader: HeaderModel[] = [
16
+ export const header: HeaderModel[] = [
37
17
  {
38
18
  title: 'Order Number'
39
19
  },
@@ -50,6 +30,36 @@ export const paymentHeader: HeaderModel[] = [
50
30
  title: 'PaymentDate'
51
31
  }
52
32
  ];
33
+
34
+ export const header: ExampleModel[] = [
35
+ OrderNumber: number = 0;
36
+ Price?: number;
37
+ OrderName?: string;
38
+ OrderDescription?: string;
39
+ PaymentDate?: Date;
40
+ ];
41
+ ```
42
+
43
+ 2. Import table component
44
+
45
+ ```ts
46
+ <Table
47
+ v-if="dataItems.length"
48
+ :options="{
49
+ Key: 'OrderNumber',
50
+ Active: false,
51
+ ShowKey: true
52
+ }"
53
+ :dataheader="dataheader"
54
+ :showFilters="true"
55
+ :loading="loading"
56
+ :pagination="pagination"
57
+ v-bind:currentItem="currentItem"
58
+ :dataItems="dataItems"
59
+ :crud="false"
60
+ @load="load($event)"
61
+ @search="search($event)"
62
+ @rowClick="rowClick($event)">
53
63
  ```
54
64
 
55
65
  --Documentation
@@ -57,9 +67,9 @@ export const paymentHeader: HeaderModel[] = [
57
67
  You should probably import main component and make a quick look at model table in your database.
58
68
 
59
69
  Before populating table, think about right types and order of models.
60
- Table should exsist with at least one virtual element at runtime, with filter option enabled.
70
+ Table should exsist with at least one virtual element at runtime with filter option enabled.
61
71
 
62
- Default events for cordinate items are load and search, with accompanying events for follow table data.
72
+ Default events for coordinated items are load and search with accompanying events for follow table data.
63
73
 
64
74
  Loading is mandatory while data items are retreving with option to use crud operation and right tool.
65
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modeltables/fontawesome-vuetify",
3
- "version": "2.9.0",
3
+ "version": "3.0.0",
4
4
  "description": "",
5
5
  "main": "./components/index.d.ts",
6
6
  "type": "module",