UNPKG

@scania/tegel

Version:
50 lines (49 loc) 1.64 kB
import { Host, h } from "@stencil/core"; export class TdsPopoverMenuItem { constructor() { /** Disables the Popover Menu Item */ this.disabled = false; } render() { return (h(Host, { key: '0b67b639198463251e4db6c86822be9d0bd648f9', role: "menuitem", "aria-disabled": this.disabled ? 'true' : 'false' }, h("div", { key: 'fd2145d0fbe009d302df767914031c135adbadb3', class: { wrapper: true, disabled: this.disabled, } }, h("slot", { key: '450e914fa54653021bde8f388fa2ffd68df3b3a6' })))); } static get is() { return "tds-popover-menu-item"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["popover-menu-item.scss"] }; } static get styleUrls() { return { "$": ["popover-menu-item.css"] }; } static get properties() { return { "disabled": { "type": "boolean", "mutable": false, "complexType": { "original": "boolean", "resolved": "boolean", "references": {} }, "required": false, "optional": false, "docs": { "tags": [], "text": "Disables the Popover Menu Item" }, "getter": false, "setter": false, "reflect": false, "attribute": "disabled", "defaultValue": "false" } }; } }