# inputEx-library

### inputEx 0.5.1

inputEx-library > inputEx > inputEx.widget.Dialog
Search:
Filters Show Private Show Protected Show Deprecated

## Class inputEx.widget.Dialog

Create a Dialog from an inputEx field definition

### Constructor

inputEx.widget.Dialog `( ) )`

Parameters:
  `) <Object} options Config object, options are :
  - inputExDef: an inputEx type definition (ex: {type: 'form', inputParams: {fields: [...]}
  >`
  - id: an optional id for the dialog
  - parentEl: optional parentEl (default document.body)
  - title: the dialog title
  - panelConfig: the YAHOO.widget.Panel userConfig object

### Methods

#### buildForm

`void buildForm ( )`
render the inputExDef as a inputEx field

#### getForm

`inputEx.Field getForm ( )`
Return the inputEx field instance created

Returns: `inputEx.Field`
  the field instance

#### getValue

`Any getValue ( )`
Shortcut to get value

Returns: `Any`
  the field value

#### renderForm

`void renderForm ( )`
Render the form

#### setValue

`void setValue ( value , [sendUpdatedEvt] )`
Shortcut to set value

Parameters:
  `value <Any>` The value to set on the field
  `[sendUpdatedEvt] <boolean>` (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)

#### whenFormAvailable

`void whenFormAvailable ( )`
Execute a callback as soon as the form is available

Copyright © 2010 Eric Abouaf All rights reserved.