[Olay] implemented as a [React] component.
bower install olay-react
OlayReact is a normal React component. To open or close the Olay, simply add or remove a child element to the Olay component.
close function to be invoked when an action has dictated that the
Olay should be closed. This function should ensure the OlayReact component will
have no children in it the next time
render is called. See the test file for
an example of using React
state to manage the state of the Olay's visibility.
The name of the transition to use, defaults to
olay-fade which is provided in
Boolean values that determine when transitions should be used, each default to
Render children inside of the OlayReact component to open an Olay with those children. Render no children to hide the Olay.
Check out the test file for a full example.
- Preventing tab-focusing from leaving the Olay is not implemented. The only solutions I've found (including the one orgsync/olay uses) are quite hacky.