fas fa-wrench
<head>
tag.openAlert
has two optional parameters message
and title
. When called an alert dialog will be shown in Xena. Syntax: Xena.openAlert(message: string = '', title: string = '')
openConfirm
has one required and two optional parameters. The first parameter is the callback from which you will receive true
if the user clicks "OK" and false
if the user clicks "Cancel" or closes the confirm box. Syntax: Xena.openConfirm(callback: (result: boolean) => any, message: string = '', title: string = '')
openPopup
has two required and one optional parameter. The first parameter is the callback for when the popup is closed. Either by the user or by your plugin. When the user closes the plugin from within Xena (via ESC-key) the callback with be called with null as the result argument: callback(null)
. Inside your plugin you can call closePopup
with an optional parameter. This parameter can be used to send a result from you modal page to your page that initiated the modal.Xena.openPopup(callback: (result: any) => any, url: string, title: string = '')
Xena.closePopup(result: any = null)
Xena.closePopup
example the Plugin page will console.log the following Result: {status: "Closed from iframe"}
.Xena.getHeight
.Xena.getHeight: () => number
Example