mwcpl
Version:
Master's Web Component Pattern Library
42 lines (41 loc) • 1.17 kB
JavaScript
import { Component, h, Prop } from '@stencil/core';
export class MwcplList {
constructor() {
/**
* Makes the list clickable.
*/
this.clickable = false;
}
render() {
return (h("ul", null,
h("slot", null)));
}
static get is() { return "mwcpl-list"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() { return {
"$": ["mwcpl-list.scss"]
}; }
static get styleUrls() { return {
"$": ["mwcpl-list.css"]
}; }
static get properties() { return {
"clickable": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Makes the list clickable."
},
"attribute": "clickable",
"reflect": false,
"defaultValue": "false"
}
}; }
}