Skip to content

Scoped UI Api

ScopedApi.ui

Methods

addStyles()

addStyles(style): () => void

Adds a style to the DOM

Parameters

ParameterType
stylestring

Returns

Function

A function to remove the styles

Returns

void


showModal()

showModal(element, options): void

Shows a customizable modal to the user

Parameters

ParameterType
elementHTMLElement | ReactElement<any, string | JSXElementConstructor<any>>
optionsPartial<{ buttons: ModalButton[]; className: string; closeOnBackgroundClick: boolean; id: string; onClosed: () => void; style: string; title: string; }>

Returns

void