You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/website/docs/components/containers/flyout/index.mdx
+21-7Lines changed: 21 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1023,17 +1023,31 @@ import { EuiBetaBadge } from '@elastic/eui';
1023
1023
This component is still in beta and may change in the future.
1024
1024
:::
1025
1025
1026
+
`EuiFlyoutMenu` is the top menu bar of a flyout. It is a private component, and is controlled by the `flyoutMenuProps` prop of `EuiFlyout`.
1027
+
1026
1028
```tsx
1027
-
<EuiFlyout>
1028
-
<EuiFlyoutMenu>
1029
-
Hi mom
1030
-
</EuiFlyoutMenu>
1031
-
<EuiFlyoutHeader>Parent header</EuiFlyoutHeader>
1032
-
<EuiFlyoutBody>Parent body</EuiFlyoutBody>
1033
-
<EuiFlyoutFooter>Parent footer</EuiFlyoutFooter>
1029
+
<EuiFlyout
1030
+
onClose={() => {}}
1031
+
flyoutMenuProps={{
1032
+
title: 'My flyout',
1033
+
customActions: [
1034
+
{
1035
+
iconType: 'gear',
1036
+
['aria-label']: 'Settings',
1037
+
onClick: () => {
1038
+
console.log('Settings clicked');
1039
+
},
1040
+
},
1041
+
],
1042
+
}}
1043
+
>
1044
+
<EuiFlyoutBody>Flyout body</EuiFlyoutBody>
1045
+
<EuiFlyoutFooter>Flyout footer</EuiFlyoutFooter>
1034
1046
</EuiFlyout>
1035
1047
```
1036
1048
1049
+
In [managed session flyouts]('./session-management.mdx'), the Flyout Manager controls a back button and a history popover control for navigating to different flyout sessions within the managed context.
0 commit comments