Class: Dialog

Mobizen.UI~Dialog

new Dialog(mobizen, panel, overlay, shortcut)

Dialog Interfaces

Name Type Description
mobizen Mobizen

parent object

panel Mobizen.UI~Panel
overlay Mobizen.UI~Overlay
shortcut Mobizen.UI~Shortcut

Members

$el jQueryObject

opened boolean

openqueue array

Type Definitions

Methods

alert(message, ok, icon, width){jQueryObject}

Name Type Description
message string

message text

ok function| string optional

ok callback

icon string optional

icon name of dialog

width number optional

width of dialog

Returns:
Type Description
jQueryObject content element

cancel(){boolean}

Returns:
Type Description
boolean successed flag

close(forward){jQueryObject}

Name Type Description
forward boolean optional

true if fade to forward

Returns:
Type Description
jQueryObject content element

confirm(message, ok, cancel, icon, width){jQueryObject}

Name Type Description
message string

message text

ok function optional

ok callback

cancel function| string optional

cancel callback

icon string optional

icon name of dialog

width number optional

width of dialog

Returns:
Type Description
jQueryObject content element

message(message, close){jQueryObject}

Name Type Description
message string

message text

close function optional

close callback

Returns:
Type Description
jQueryObject content element

middle()

ok(){boolean|null}

Returns:
Type Description
boolean | null successed flag

open(type, message, ok, cancel){jQueryObject}

Name Type Description
type string

type of dialog

message string optional

message text

ok function optional

ok callback

cancel function optional

cancel callback

Returns:
Type Description
jQueryObject content element
comments powered by Disqus