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