fix(chart,dashboardgrid demos): use dees-button text property consistently in demo interactions and update dataset button highlighting reliably

This commit is contained in:
2026-04-02 19:43:16 +00:00
parent 5cf8161735
commit 1a3a5e5454
5 changed files with 35 additions and 50 deletions

View File

@@ -103,7 +103,7 @@ export const demoFunc = () => {
const buttons = elementArg.querySelectorAll('dees-button');
buttons.forEach(button => {
const text = button.textContent?.trim();
const text = (button as any).text?.trim();
switch (text) {
case 'Toggle Animation':
@@ -147,7 +147,7 @@ export const demoFunc = () => {
case 'Toggle Edit Mode':
button.addEventListener('click', () => {
grid.editable = !grid.editable;
button.textContent = grid.editable ? 'Lock Grid' : 'Unlock Grid';
(button as any).text = grid.editable ? 'Lock Grid' : 'Unlock Grid';
});
break;
case 'Reset Layout':