move data, not elements approach

This commit is contained in:
Niels Lyngsø
2024-01-11 22:40:22 +01:00
parent 94cf0fbdc9
commit fe64c025fc
2 changed files with 54 additions and 129 deletions

View File

@@ -17,6 +17,7 @@ const SORTER_CONFIG: UmbSorterConfig<ModelEntryType> = {
identifier: 'string-that-identifies-all-example-sorters',
itemSelector: '.sorter-item',
containerSelector: '.sorter-container',
placeholderClass: 'sorter-placeholder',
};
@customElement('example-sorter-dashboard')
@@ -101,6 +102,9 @@ export class ExampleSorterDashboard extends UmbElementMixin(LitElement) {
border-radius: var(--uui-border-radius);
margin-bottom: 3px;
}
.sorter-placeholder {
opacity: 0.2;
}
`,
];
}