UI Api
Methods
Section titled “Methods”addStyles()
Section titled “addStyles()”addStyles(
style): () =>void
Adds a style to the DOM
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
style | string |
Returns
Section titled “Returns”Function
A function to remove the styles
Returns
Section titled “Returns”void
showModal()
Section titled “showModal()”showModal(
element,options):void
Shows a customizable modal to the user
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
element | HTMLElement | ReactElement<any, string | JSXElementConstructor<any>> |
options | { buttons: ModalButton[]; className: string; closeOnBackgroundClick: boolean; id: string; onClosed: () => void; style: string; title: string; } |
options.buttons? | ModalButton[] |
options.className? | string |
options.closeOnBackgroundClick? | boolean |
options.id? | string |
options.onClosed? | () => void |
options.style? | string |
options.title? | string |
Returns
Section titled “Returns”void