Lit Element
Backoffice supports any native Web Components. But we choose to use a little framework to make it simpler.
Last updated
Was this helpful?
Was this helpful?
@customElement('name-of-example-component')
export class NameOfExampleComponent extends UmbLitElement {
@property({ type: String })
public name?: string
render() {
return html`The Rabbit has a name ${this.name}`;
}
}<name-of-example-component name="CG Roumersen"></name-of-example-component>#myComplexValue = { myString: "hey", myNumber: 123 }
override render() {
return html`
<another-element .myValue=${this.#myComplexValue}></uui-button>
`;
} #onClick() {
console.log("I got clicked")
}
override render() {
return html`
<uui-button @click=${this.#onClick} label="Click me"></uui-button>
`;
}