import { DeesElement, TemplateResult, property, customElement, html } from '@designestate/dees-element'; @customElement('deap-mainselector') export class DeapMainselector extends DeesElement { public static demo = () => html``; // INSTANCE @property() public selectionOptions: {key: string; action: () => void}[] = [ {key: 'option 1', action: () => {alert('hello')}}, {key: 'option 2', action: () => {}}, {key: 'option 3', action: () => {}}, {key: 'option 4', action: () => {}} ]; public render (): TemplateResult { return html`
Properties
${this.selectionOptions.map(selectionOptionArg => { return html`
${selectionOptionArg.key}
`; })}
`; } }