SAT9/.resources/c83cbc9eaa22734f2bd1b02f628ea0e776153887385d65cc78ffa17a0256ae50
2025-04-18 19:44:27 +04:00

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")