BetterDialog
The entry point of the library. You can use it to initialize one or more dialog elements.
Constructor
new BetterDialog( target: string | HTMLDialogElement | HTMLDialogElement[] | NodeList, options?: DialogOptions)
Properties
dialogItems: DialogItem[]
— An array of dialog instances.els: HTMLDialogElement[]
— The raw dialog elements.
Methods
getDialogItemById
getDialogItemById(id: string): DialogItem | undefined
Returns the DialogItem instance matching the given id
.