@trimble-oss/moduswebcomponents
Version:
Modus Web Components is a modern, accessible UI library built with Stencil JS that provides reusable web components following Trimble's Modus design system. This updated version focuses on improved flexibility, enhanced theming options, comprehensive cust
39 lines (38 loc) • 1.26 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { ModusSize } from '../types';
/**
* A customizable menu item component used to display the item portion of a menu
*/
export declare class ModusWcMenuItem {
private inheritedAttributes;
/** Reference to the host element */
el: HTMLElement;
bordered?: boolean;
/** Custom CSS class to apply to the li element. */
customClass?: string;
/** The disabled state of the menu item. */
disabled?: boolean;
/** The text rendered in the menu item. */
label: string;
/** The modus icon name to render on the start of the menu item. */
startIcon?: string;
/** The selected state of the menu item. */
selected?: boolean;
/** The focused state of the menu item. */
focused?: boolean;
/** The size of the menu item. */
size?: ModusSize;
/** The text rendered beneath the label. */
subLabel?: string;
/** The unique identifying value of the menu item. */
value: string;
/** Event emitted when a menu item is selected. */
itemSelect: EventEmitter<{
value: string;
}>;
componentWillLoad(): void;
private getClasses;
private getIconSize;
private handleItemSelect;
render(): any;
}