new Dialog(options)
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            * | 
                Properties
  | 
        
Fires:
- event:show
 - event:hide
 - event:cancel
 - event:button
 
Extends
Methods
- 
    
close()
 - 
    
    
Close the dialog
 - 
    
getContentElement()
 - 
    
    
Get dialog content element
Returns:
- Type
 - Element
 
 - 
    
getInputs()
 - 
    
    
Get inputs, textarea an select of the dialog by classname
Returns:
a {key:value} list of Elements by classname
- Type
 - Object
 
 - 
    
hide()
 - 
    
    
Close the dialog
 - 
    
isOpen()
 - 
    
    
The dialog is shown
Returns:
true if a dialog is open
- Type
 - bool
 
 - 
    
open()
 - 
    
    
Open the dialog
 - 
    
setContent(options)
 - 
    
    
Set the dialog content
Parameters:
Name Type Description options* Properties
Name Type Argument Description contentElement | String dialog content
titlestring title of the dialog
classNamestring dialog class name
maxnumber if not null add a progress bar to the dialog
progressnumber set the progress bar value
buttonsObject a key/value list of button to show
onButtonfunction <optional> 
a function that takes the button id and a list of input by className
 - 
    
setContentMessage(content)
 - 
    
    
Set the dialog content
Parameters:
Name Type Description contentElement | String dialog content
 - 
    
setProgress(val, max, message)
 - 
    
    
Set progress
Parameters:
Name Type Description valnumber | boolean the progress value or false to hide the progressBar
maxnumber messagestring | element  - 
    
setTitle(content)
 - 
    
    
Set the dialog title
Parameters:
Name Type Description contentElement | String dialog content
 - 
    
show(options)
 - 
    
    
Show a new dialog
Parameters:
Name Type Description options* | Element | string options or a content to show
Properties
Name Type Argument Description contentElement | String dialog content
titlestring title of the dialog
classNamestring dialog class name
autoclosenumber a delay in ms before auto close
hideOnBackboolean close dialog when click the background
maxnumber if not null add a progress bar to the dialog
progressnumber set the progress bar value
buttonsObject a key/value list of button to show
onButtonfunction <optional> 
a function that takes the button id and a list of input by className