Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 993 Bytes

result.alert.md

File metadata and controls

25 lines (19 loc) · 993 Bytes

Result.alert

The alert function displays an alert dialog. Multiple calls to alert will concatenate the alert messages.

Sample

var result = new Result();
result.alert("good morning!").alert("good night!");

API

Calling Returning
result. alert ( message ) Result
result. alert ( message, title ) Result
result. alert ( message, params ) Result
result. alert ( message, title, params ) Result
Parameters Type Description
message String The message to display in the alert dialog. Placeholders can be used:
xxxx{param1}yyy{param2}yy
You can define "{param}" in the message; it will be replaced by the corresponding value in the params object.
params Object The parameters used to replace the "{param}" placeholders in the message. Example:
{param1: value1, param2: value2 }
title String The title for the alert dialog.