@lukfel/ng-scaffold 20.0.40 → 20.0.41
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 +1 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -393,7 +393,6 @@ import { Button, ListConfig, ListHeader, ListItem } from '@lukfel/ng-scaffold';
|
|
|
393
393
|
public listConfig: ListConfig = {
|
|
394
394
|
enableSelection: true,
|
|
395
395
|
enableDragging: true,
|
|
396
|
-
mode: 'flat',
|
|
397
396
|
initialSortToken: 'title',
|
|
398
397
|
initialSortAsc: true,
|
|
399
398
|
showDividers: true
|
|
@@ -417,7 +416,7 @@ public buttons: Button[] = [
|
|
|
417
416
|
{ id: 'delete', matIcon: 'delete', cssClass: 'warn' }
|
|
418
417
|
];
|
|
419
418
|
|
|
420
|
-
// Handle sort events
|
|
419
|
+
// Handle sort events (optional)
|
|
421
420
|
public onListSortChange(event: { sortToken: string, sortAsc: boolean }): void {
|
|
422
421
|
if (event?.sortToken === 'title') {
|
|
423
422
|
this.listItems.sort((a, b) => {
|