@paraboly/pwc-sliding-panel
Version:
A panel that slides open from the sides of the page when you click a handle.
43 lines (42 loc) • 1.24 kB
JavaScript
import { h } from "@stencil/core";
export class PwcSlidingPanelToggle {
clickListener(event) {
if (event.target === this.root) {
this.toggled.emit();
}
}
render() {
return h("slot", null);
}
static get is() { return "pwc-sliding-panel-toggle"; }
static get originalStyleUrls() { return {
"$": ["pwc-sliding-panel-toggle.scss"]
}; }
static get styleUrls() { return {
"$": ["pwc-sliding-panel-toggle.css"]
}; }
static get events() { return [{
"method": "toggled",
"name": "toggled",
"bubbles": true,
"cancelable": true,
"composed": true,
"docs": {
"tags": [],
"text": ""
},
"complexType": {
"original": "any",
"resolved": "any",
"references": {}
}
}]; }
static get elementRef() { return "root"; }
static get listeners() { return [{
"name": "click",
"method": "clickListener",
"target": undefined,
"capture": false,
"passive": false
}]; }
}