@anjuna/docs
Version:
Anjuna Documentation Web Components
40 lines (39 loc) • 1.22 kB
JavaScript
import { h } from "@stencil/core";
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 originalStyleUrls() { return {
"$": ["../../theme/definition.scss"]
}; }
static get styleUrls() { return {
"$": ["../../theme/definition.css"]
}; }
static get properties() { return {
"method": {
"type": "unknown",
"mutable": false,
"complexType": {
"original": "{[key: string]: any}",
"resolved": "{ [key: string]: any; }",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "The property to display"
}
}
}; }
}