feat(sz-config-section): add header action buttons to sz-config-section allowing configurable actions/events

This commit is contained in:
2026-02-23 21:23:35 +00:00
parent 33a97b410e
commit 0f6bfe45aa
4 changed files with 61 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import {
cssManager,
type TemplateResult,
} from '@design.estate/dees-element';
import type { IConfigField } from './sz-config-section.js';
import type { IConfigField, IConfigSectionAction } from './sz-config-section.js';
import './index.js';
declare global {
@@ -109,6 +109,7 @@ export class SzDemoViewConfig extends DeesElement {
icon="lucide:network"
status="enabled"
.fields=${proxyFields}
.actions=${[{ label: 'View Routes', icon: 'lucide:arrow-right', event: 'navigate', detail: { view: 'routes' } }] as IConfigSectionAction[]}
></sz-config-section>
<sz-config-section