feat(sz-config-section): add header action buttons to sz-config-section allowing configurable actions/events
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user