SAT9/.resources/cc85358d88bb39fad11bd8028fd3b69cf7c29863df18469f0f948889fc62c21e

18 lines
893 B
Plaintext

def showAlert(state, title, message, showCloseBtn, btnTextPrimary, btnTextSecondary, btnIconPrimary, btnIconSecondary, btnIconAlignment="left", btnActionPrimary="", btnActionSecondary="", btnActionClose="", payload={}):
params = {
"state": state,
"title": title,
"message": message,
"showCloseBtn": showCloseBtn,
"btnTextPrimary": btnTextPrimary,
"btnTextSecondary": btnTextSecondary,
"btnIconPrimary": btnIconPrimary,
"btnIconSecondary": btnIconSecondary,
"btnIconAlignment": btnIconAlignment,
"btnActionPrimary": btnActionPrimary,
"btnActionSecondary": btnActionSecondary,
"btnActionClose": btnActionClose,
"payload": payload ## Added 2021-09-23
}
system.perspective.openPopup(id="alertDialog", view="Alerts/alert", params=params, showCloseIcon=False, draggable=False, resizable=False, modal=True, overlayDismiss=True, btnActionPrimary="closePopup")