office-ui-fabric-react#MessageBarButton TypeScript Examples
The following examples show how to use
office-ui-fabric-react#MessageBarButton.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpfxFluentuiMessagebar.tsx From SPFx with Mozilla Public License 2.0 | 6 votes |
WarningMessage = () => (
<MessageBar
messageBarType={MessageBarType.severeWarning}
actions={
<div>
<MessageBarButton onClick={() => console.log('Yes clicked')}>Yes</MessageBarButton>
<MessageBarButton onClick={() => console.log('No clicked')}>No</MessageBarButton>
</div>
}
>
SevereWarning MessageBar with action buttons which defaults to multiline.
<Link href="www.bing.com" target="_blank">
Visit our website.
</Link>
</MessageBar>
)
Example #2
Source File: SpfxFluentuiMessagebar.tsx From SPFx with Mozilla Public License 2.0 | 6 votes |
SuccessQuestion = () => (
<MessageBar
actions={
<div>
<MessageBarButton onClick={() => console.log('Yes clicked')}>Yes</MessageBarButton>
<MessageBarButton onClick={() => console.log('No clicked')}>No</MessageBarButton>
</div>
}
messageBarType={MessageBarType.success}
isMultiline={false}
>
Success MessageBar with single line and action buttons.
<Link href="www.bing.com" target="_blank">
Visit our website.
</Link>
</MessageBar>
)
Example #3
Source File: SpfxFluentuiMessagebar.tsx From SPFx with Mozilla Public License 2.0 | 6 votes |
WarningQuestion = () => (
<MessageBar
messageBarType={MessageBarType.warning}
isMultiline={false}
dismissButtonAriaLabel="Close"
actions={
<div>
<MessageBarButton onClick={() => console.log('Action clicked')}>Action</MessageBarButton>
</div>
}
>
Warning MessageBar content.
<Link href="www.bing.com" target="_blank">
Visit our website.
</Link>
</MessageBar>
)
Example #4
Source File: SpfxFluentuiMessagebar.tsx From SPFx with Mozilla Public License 2.0 | 6 votes |
WarningLongMessage = () => (
<MessageBar
dismissButtonAriaLabel="Close"
messageBarType={MessageBarType.warning}
actions={
<div>
<MessageBarButton>Yes</MessageBarButton>
<MessageBarButton>No</MessageBarButton>
</div>
}
>
<b>Warning defaults to multiline</b>. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi luctus, purus a
lobortis tristique, odio augue pharetra metus, ac placerat nunc mi nec dui. Vestibulum aliquam et nunc semper
scelerisque. Curabitur vitae orci nec quam condimentum porttitor et sed lacus. Vivamus ac efficitur leo. Cras
faucibus mauris libero, ac placerat erat euismod et. Donec pulvinar commodo odio sit amet faucibus. In hac habitasse
platea dictumst. Duis eu ante commodo, condimentum nibh pellentesque, laoreet enim. Fusce massa lorem, ultrices eu
mi a, fermentum suscipit magna. Integer porta purus pulvinar, hendrerit felis eget, condimentum mauris.
<Link href="www.bing.com" target="_blank">
Visit our website.
</Link>
</MessageBar>
)