@kelvininc/ui-components
Version:
Kelvin UI Components
18 lines (17 loc) • 674 B
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
export interface ITimePickerSelectOption {
/** (required) The text to display on the item */
label: string;
/** (required) The item value */
value: string;
/** (optional) The description of the text displayed */
description?: string;
/** (optional) If `true` the item is selected */
selected?: boolean;
/** (optional) Custom attributes to be applied to the option container element */
customAttributes?: Record<string, string>;
}
export interface ITimePickerSelectOptionEvents {
/** Emitted when the user clicks on the item */
itemSelected: EventEmitter<string>;
}