@anjuna/docs
Version:
Anjuna Documentation Web Components
23 lines (22 loc) • 688 B
JavaScript
export class MethodDef {
nameless(name) {
return `(${name.split('(')[1]}`;
}
render() {
return [
h("h4", null,
h("ad-decorator", null, "@Method\u00A0"),
h("ad-api-name", null, this.method.name),
h("ad-type-def", null, this.nameless(this.method.signature))),
h("p", null, this.method.docs)
];
}
static get is() { return "ad-method-def"; }
static get properties() { return {
"method": {
"type": "Any",
"attr": "method"
}
}; }
static get style() { return "/**style-placeholder:ad-method-def:**/"; }
}