@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
37 lines (36 loc) • 1.23 kB
TypeScript
import { EventEmitter, VNode } from "../../stencil-public-runtime";
import { Scale, SelectionMode } from "../interfaces";
import { RequestedItem } from "./interfaces";
/**
* @slot - A slot for adding `calcite-dropdown-item`s.
*/
export declare class DropdownGroup {
el: HTMLCalciteDropdownGroupElement;
/** Specifies and displays a group title. */
groupTitle: string;
/**
* Specifies the component's selection mode, where
* `"multiple"` allows any number of (or no) selected `calcite-dropdown-item`s,
* `"single"` allows and requires one selected `calcite-dropdown-item`, and
* `"none"` does not allow selection on `calcite-dropdown-item`s.
*/
selectionMode: Extract<"single" | "none" | "multiple", SelectionMode>;
/**
* Specifies the size of the component.
*/
scale: Scale;
/**
* @internal
*/
calciteInternalDropdownItemChange: EventEmitter<RequestedItem>;
componentWillLoad(): void;
render(): VNode;
updateActiveItemOnChange(event: CustomEvent): void;
/** position of group within a dropdown */
private groupPosition;
/** the requested group */
private requestedDropdownGroup;
/** the requested item */
private requestedDropdownItem;
private getGroupPosition;
}