@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
92 lines (91 loc) • 2.55 kB
JavaScript
/*!
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
* v1.5.0-next.4
*/
import { h } from "@stencil/core";
import { connectInteractive, disconnectInteractive, updateHostInteraction } from "../../utils/interactive";
/**
* @slot - A slot for adding `calcite-tile-select` elements.
*/
export class TileSelectGroup {
constructor() {
this.disabled = false;
this.layout = "horizontal";
}
//--------------------------------------------------------------------------
//
// Lifecycle
//
//--------------------------------------------------------------------------
connectedCallback() {
connectInteractive(this);
}
componentDidRender() {
updateHostInteraction(this);
}
disconnectedCallback() {
disconnectInteractive(this);
}
render() {
return h("slot", null);
}
static get is() { return "calcite-tile-select-group"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"$": ["tile-select-group.scss"]
};
}
static get styleUrls() {
return {
"$": ["tile-select-group.css"]
};
}
static get properties() {
return {
"disabled": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "When `true`, interaction is prevented and the component is displayed with lower opacity."
},
"attribute": "disabled",
"reflect": true,
"defaultValue": "false"
},
"layout": {
"type": "string",
"mutable": false,
"complexType": {
"original": "TileSelectGroupLayout",
"resolved": "\"horizontal\" | \"vertical\"",
"references": {
"TileSelectGroupLayout": {
"location": "import",
"path": "./interfaces"
}
}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "Defines the layout of the component.\n\nUse `\"horizontal\"` for rows, and `\"vertical\"` for a single column."
},
"attribute": "layout",
"reflect": true,
"defaultValue": "\"horizontal\""
}
};
}
static get elementRef() { return "el"; }
}