A flyout component in react.
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props | object | Component props. Properties
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ref | object | | Ref to the component. |
- Since
- 1.1.18
- Source
The Flyout component.
- Type:
- JSX.
Element
import Flyout from '@gravityforms/components/react/admin/modules/Flyout';
return (
<Flyout direction="right" title="Flyout title">
{ children }
</Flyout>
);
Methods
(inner) closeFlyout() → {void}
Closes the flyout and fires the onClose
function if passed in.
- Since
- 1.1.18
- Source
- Type:
- void
(inner) getBody() → {JSX.Element}
Returns the body that wrap the children of the flyout.
- Since
- 1.1.18
- Source
- Type:
- JSX.
Element
(inner) getCSS() → {string}
Returns the CSS used to handle the width and mobile media query.
- Since
- 1.1.18
- Source
The CSS for the flyout.
- Type:
- string
(inner) getHeader() → {JSX.Element}
Returns the header of the flyout that contains the title and description.
- Since
- 1.1.18
- Source
- Type:
- JSX.
Element
(inner) showFlyout() → {void}
Opens the flyout and fires the onOpen
function if passed in.
- Since
- 1.1.18
- Source
- Type:
- void