0.0.1-alpha • Published 8 years ago
react-openthis v0.0.1-alpha
React OpenThis
A simple react component to show modals dialogs.
Installation
npm install --save react-openthis
HomePage and Examples
API
This module has three functions:
openThis(Component|Element, Object settings)
: This is the main function, By calling It You can open your dialog.
It gets two arguments, The Component/Element You want to open it as the first argument, And settings as the second argument.
openAlert(title, message, Object settings)
openConfirm(title, message, Array buttons, Object settings)
Currently accessible Settings are:
Boolean close
: Whether to show close button or not.CloseElement
: The close element you want to use instead of default element.Boolean overlay
: Whether to show overlay layer or not.
To know more and see examples and demos visit here.
To know how to style it view style.css
in source.
0.0.1-alpha
8 years ago