UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

42 lines (41 loc) 1.43 kB
import { IRenderFunction } from '../../Utilities'; import { Dropdown } from './Dropdown'; import { ISelectableOption } from '../../utilities/selectableOption/SelectableOption.Props'; import { ISelectableDroppableTextProps } from '../../utilities/selectableOption/SelectableDroppableText.Props'; export { SelectableOptionMenuItemType as DropdownMenuItemType } from '../../utilities/selectableOption/SelectableOption.Props'; export interface IDropdown { } export interface IDropdownProps extends ISelectableDroppableTextProps<Dropdown> { /** * Input placeholder text. Displayed until option is selected. */ placeHolder?: string; /** * Callback issues when the selected option changes */ onChanged?: (option: IDropdownOption, index?: number) => void; /** * Optional custom renderer for placeholder text */ onRenderPlaceHolder?: IRenderFunction<IDropdownProps>; /** * Optional custom renderer for selected option displayed in input */ onRenderTitle?: IRenderFunction<IDropdownOption>; /** * Deprecated at v0.52.0, use 'disabled' instead. * @deprecated */ isDisabled?: boolean; } export interface IDropdownOption extends ISelectableOption { /** * Data available to custom onRender functions. */ data?: any; /** * Deprecated at v.65.1, use 'selected' instead. * @deprecated */ isSelected?: boolean; }