Scoped 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 | Partial <{ buttons : ModalButton []; className : string ; closeOnBackgroundClick : boolean ; id : string ; onClosed : () => void ; style : string ; title : string ; }> |
Returns
Section titled “Returns”void