@kelvininc/ui-components
Version:
Kelvin UI Components
53 lines (52 loc) • 1.61 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { HostAttributes } from '../../stencil-public-runtime';
import { EToggleState, ISelectOption, ISelectOptionAction, ISelectOptionEvents } from './select-option.types';
import { EIconName } from '../icon/icon.types';
import { CustomCssClass } from '../../types';
/**
* @part select-option-content - The option's content container
* @part option-container - The option's container
* @part checkbox - The option's checkbox
* @part label - The option's label
* @part icon - The option's icon
*/
export declare class KvSelectOption implements ISelectOption, ISelectOptionEvents {
el: HTMLKvSelectOptionElement;
/** @inheritdoc */
label: string;
/** @inheritdoc */
value: string;
/** @inheritdoc */
icon?: EIconName;
/** @inheritdoc */
description?: string;
/** @inheritdoc */
disabled?: boolean;
/** @inheritdoc */
selected?: boolean;
/** @inheritdoc */
highlighted?: boolean;
/** @inheritdoc */
togglable?: boolean;
/** @inheritdoc */
selectable?: boolean;
/** @inheritdoc */
heading?: boolean;
/** @inheritdoc */
level: number;
/** @inheritdoc */
state?: EToggleState;
/** @inheritdoc */
isDirty?: boolean;
/** @inheritdoc */
customClass?: CustomCssClass;
/** @inheritdoc */
customStyle?: HostAttributes['style'];
/** @inheritdoc */
action?: ISelectOptionAction;
/** @inheritdoc */
itemSelected: EventEmitter<string>;
highlightedChangeHandler(): void;
private onItemClick;
render(): any;
}