{
return (
{props.placeholder}
);
}}
onRenderTitle={(options: IDropdownOption[]): JSX.Element => {
const option = options[0];
return (
{option.data && option.data.icon && (
)}
{option.text}
);
}}
onRenderOption={(option: IDropdownOption): JSX.Element => {
return (
{option.data && option.data.icon && (
)}
{option.text}
);
}}
onRenderCaretDown={(props: IDropdownProps): JSX.Element => {
return ;
}}
options={[
{ key: 'Header', text: 'Actions', itemType: DropdownMenuItemType.Header },
{ key: 'A', text: 'Option a', data: { icon: 'Memo' } },
{ key: 'B', text: 'Option b', data: { icon: 'Print' } },
{ key: 'C', text: 'Option c', data: { icon: 'ShoppingCart' } },
{ key: 'D', text: 'Option d', data: { icon: 'Train' } },
{ key: 'E', text: 'Option e', data: { icon: 'Repair' } },
{ key: 'divider_2', text: '-', itemType: DropdownMenuItemType.Divider },
{ key: 'Header2', text: 'People', itemType: DropdownMenuItemType.Header },
{ key: 'F', text: 'Option f', data: { icon: 'Running' } },
{ key: 'G', text: 'Option g', data: { icon: 'EmojiNeutral' } },
{ key: 'H', text: 'Option h', data: { icon: 'ChatInviteFriend' } },
{ key: 'I', text: 'Option i', data: { icon: 'SecurityGroup' } },
{ key: 'J', text: 'Option j', data: { icon: 'AddGroup' } },
]}
/>
),
{ rtl: true },
)
.addStory('Required', () => (
))
.addStory('Required without label', () => (
));
storiesOf('Dropdown Disabled', module)
.addDecorator(FabricDecorator)
.addDecorator(story => (
{story()}
))
.addStory('Root', () => (
));