Difference between revisions of "Migration to the new CRUD"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
= Single page (not tab) = | = Single page (not tab) = | ||
− | == detail html (compare with unit-detail.component. | + | == detail html (compare with unit-detail.component.html) == |
Add mat-card-header; | Add mat-card-header; | ||
Line 24: | Line 24: | ||
Change isEdit with !isNew(); | Change isEdit with !isNew(); | ||
+ | |||
+ | Invert color of save and back; | ||
+ | |||
+ | == detail ts (compare with unit-detail.component.ts) == | ||
Change iconize function; | Change iconize function; | ||
Line 30: | Line 34: | ||
Modify populate function; | Modify populate function; | ||
− | |||
− |
Revision as of 15:08, 12 May 2022
Contents
List (valid both for single or multiple page
list html
Add mat-card-header;
list ts
Function editX must pass element and not element.id;
If possible, use the function populateTable instead of rewriting it;
Then, you can delete the 2 ViewChild lines as they are no more necessary;
Use super.iconize instead of defaulticonize;
Single page (not tab)
detail html (compare with unit-detail.component.html)
Add mat-card-header;
Remove ngIf loaded;
Change isEdit with !isNew();
Invert color of save and back;
detail ts (compare with unit-detail.component.ts)
Change iconize function;
Add bookmark function;
Modify populate function;