Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.29 KB

efw.dialog.alert.md

File metadata and controls

44 lines (37 loc) · 1.29 KB

efw.dialog.alert

The alert function is established to call client alert with specified buttons. It is the base function for Result.alert and Result.confirm.

Sample

<script>
	function btnClick(){
		efw.dialog.alert("To save the input. OK ? ",{
				OK:function(){Efw("myPage_save");},
				Close:null,
			},
			"Save or Not",
		)
	}
</script>
<input type="button" value="Send" onclick="btnClick()">

API

Calling
efw.dialog.alert ( message )
efw.dialog.alert ( message, buttons )
efw.dialog.alert ( message, buttons, title )
efw.dialog.alert ( message, buttons, title, callback )
ParameterTypeDescription
messageString The information to show at the alert dialog.
buttonsObjectTo define the buttons and the click actions.
{buttonName1:script1, buttonName2:script2}

The script will be run at client after the button is clicked.

titleStringThe title for the alert dialog.
callbackFunctionThe callback function will be called after the alert dialog closing.