18 lines
893 B
Plaintext
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")
|