Skip to main content

renderAlert

Description

renderAlert is a function that makes rendering <jp-alert> easier.


Parameters

NameRequiredTypeDescription
optionsAlertOptionsrendering options
callback(action?: string) => voidcalled when alert closes


Interfaces

AlertOptions

Properties
NameRequiredTypeDescription
titlestringtitle of the alert
messagestringinformation within an alert
state'error' or 'success'type of alert
hostHTMLElementelement to append the alert to
durationnumberduration of the appereance of alert