office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
39 lines (38 loc) • 899 B
TypeScript
export interface ISelectableOption {
/**
* Arbitrary string associated with this option.
*/
key: string | number;
/**
* Text to render for this option
*/
text: string;
/**
* Title attribute (built in tooltip) for a given option.
*/
title?: string;
/**
* Text to render for this option
*/
itemType?: SelectableOptionMenuItemType;
/**
* Index for this option
*/
index?: number;
/**
* The aria label for the dropdown option. If not present, the `text` will be used.
*/
ariaLabel?: string;
/** If option is selected. */
selected?: boolean;
/**
* Whether the option is disabled
* @defaultvalue false
*/
disabled?: boolean;
}
export declare enum SelectableOptionMenuItemType {
Normal = 0,
Divider = 1,
Header = 2,
}