Extends
Members
(static) EventType :string
Dialog event type
Type:
- string
Properties:
Name | Type | Description |
---|---|---|
OK |
string | Dialog ok event type |
YES_NO |
string | Dialog yes-no event type |
INPUT |
string | Dialog input event type |
(static) Type :string
Dialog type
Type:
- string
Properties:
Name | Type | Description |
---|---|---|
OK |
string | Dialog with OK button |
YES_NO |
string | Dialog with Yes and No buttons |
INPUT |
string | Dialog to accept user input |
Methods
input(msg, placeholderopt, callbackopt)
Show the input dialog
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
msg |
string | The message to display | |
placeholder |
string |
<optional> |
The placeholder for the input field |
callback |
function |
<optional> |
Callback function |
off(eventName, evtHdlr, hdlrScopeopt)
Remove a previously connected event handler
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
eventName |
string | The name of the event to which the handler will be connected | |
evtHdlr |
function | The event handler function | |
hdlrScope |
Object |
<optional> |
The scope in which to invoke the event handler |
- Inherited From:
- Source:
ok(msg, callbackopt)
Show the ok dialog
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
msg |
string | The message to display | |
callback |
function |
<optional> |
Callback function |
on(eventName, evtHdlr, hdlrScopeopt)
Connect a function to an event
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
eventName |
string | The name of the event to which the handler will be connected | |
evtHdlr |
function | The event handler function | |
hdlrScope |
Object |
<optional> |
The scope in which to invoke the event handler |
- Inherited From:
- Source:
one(eventName, evtHdlr, hdlrScopeopt)
Connect a function to an event for a single invocation
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
eventName |
string | The name of the event to which the handler will be connected | |
evtHdlr |
function | The event handler function | |
hdlrScope |
Object |
<optional> |
The scope in which to invoke the event handler |
- Inherited From:
- Source:
trigger(eventName, dataopt)
Trigger a named event with event data
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
eventName |
string | The name of the event to trigger | |
data |
Object |
<optional> |
The event data |
- Inherited From:
- Source:
yesNo(msg, callbackopt)
Show the yes-no dialog
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
msg |
string | The message to display | |
callback |
function |
<optional> |
Callback function |