ng-fusion-ui 0.6.27 → 0.6.30

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 CHANGED
@@ -21,27 +21,54 @@ For full documentation, visit [Fusion Ui](https://fusion-ui.up.railway.app).
21
21
  ## Basic Usage/Examples
22
22
 
23
23
  ```javascript
24
- <fu-data-grid
25
- [dataSource]="data"
26
- [expandable]="true"
27
- [paginator]="true"
28
- >
29
- <ng-container *fuHeaderTemplate>
30
- <fu-head-row-cell cellDef="Id" />
31
- <fu-head-row-cell cellDef="Name" />
32
- <fu-head-row-cell cellDef="Email" />
33
- <fu-head-row-cell cellDef="Phone" />
34
- </ng-container>
35
-
36
- <ng-container *fuBodyTemplate="data; let row">
37
- <fu-body-row-cell [cellValue]="row.id" />
38
- <fu-body-row-cell [cellValue]="row.name" />
39
- <fu-body-row-cell [cellValue]="row.email" />
40
- <fu-body-row-cell [cellValue]="row.phone" />
41
- </ng-container>
42
-
43
- <ng-container *fuExpandTemplate="data; let row">
44
- expand content goes here...
45
- </ng-container>
46
- </fu-data-grid>
24
+ <fu-table
25
+ [tableLayout]="'auto'"
26
+ [dataSource]="data"
27
+ [totalCount]="totalCount"
28
+ [expandable]="false"
29
+ [expanded]="true"
30
+ [isLoading]="loading"
31
+ localStorageKey="fake"
32
+ [firstPageOnInit]="false"
33
+ [serverPagination]="true"
34
+ [showFilter]="true"
35
+ [showPaginator]="true"
36
+ [quickPageJump]="true"
37
+ (tableActions)="tableActions($event)"
38
+ (selectRowAction)="selectRowAction($event)"
39
+ variant="outlined"
40
+ >
41
+ <ng-container *fuHeaderTemplate="data; let key">
42
+ <fu-thead-cell headerText="id" width="70px" />
43
+ <fu-thead-cell headerText="name" />
44
+ <fu-thead-cell headerText="image" />
45
+ <fu-thead-cell headerText="phone" />
46
+ <fu-thead-cell headerText="email" />
47
+ <fu-thead-cell width="100px" />
48
+ </ng-container>
49
+
50
+ <ng-container *fuBodyTemplate="data; let row; keys as key">
51
+ <fu-tbody-cell [cellValue]="row.id" />
52
+ <fu-tbody-cell [cellValue]="row.name" />
53
+ <fu-tbody-cell>
54
+ <img [src]="row.image" />
55
+ </fu-tbody-cell>
56
+ <fu-tbody-cell [cellValue]="row.phone" [editKey]="key.phone" />
57
+ <fu-tbody-cell [cellValue]="row.email" />
58
+
59
+ <fu-tbody-actions
60
+ [editRowData]="row"
61
+ (editSaveAction)="editSaveAction($event)"
62
+ />
63
+ </ng-container>
64
+
65
+ <ng-container *fuPopupTemplate>
66
+ <button fuButton>Hello</button>
67
+ <button fuButton>Hello world</button>
68
+ </ng-container>
69
+
70
+ <ng-container *fuExpandTemplate="data; let row">
71
+ <div>expand content: {{ row.name }}</div>
72
+ </ng-container>
73
+ </fu-table>
47
74
  ```