Roo.util.Observable Roo.Component Roo.bootstrap.Component Roo.bootstrap.Form
Package: | Roo.bootstrap |
Defined In: | Roo/bootstrap/Form.js. |
Class: | Form |
Extends: | Roo.bootstrap.Component |
Options | Defined By | |
---|---|---|
actionMode : String
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el'
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el' |
Roo.Component | |
align : String
left | right - for navbars
left | right - for navbars
|
Roo.bootstrap.Form | |
allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Whether the component can move the Dom node when rendering (defaults to true).
|
Roo.Component | |
baseParams : Object
Parameters to pass with all requests.
Parameters to pass with all requests. e.g. baseParams: {id: '123', foo: 'bar'}.
|
Roo.bootstrap.Form | |
can_build_overlaid : Boolean
True if element can be rebuild from a HTML page
True if element can be rebuild from a HTML page
|
Roo.bootstrap.Component | |
cls : String
css class
css class
|
Roo.bootstrap.Component | |
container_method : string
method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)
method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)
|
Roo.bootstrap.Component | |
dataId : string
cutomer id
cutomer id
|
Roo.bootstrap.Component | |
disableClass : String
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
|
Roo.Component | |
errPopover : Boolean
default false
default false
Possible Values: true, false |
Roo.bootstrap.Form | |
fileUpload : Boolean
Set to true if this form is a file upload.
Set to true if this form is a file upload.
|
Roo.bootstrap.Form | |
hideMode : String
How this component should hidden.
How this component should hidden. Supported values are
"visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display". Possible Values: display, visibility |
Roo.Component | |
labelAlign : String
top | left (default top)
top | left (default top)
|
Roo.bootstrap.Form | |
listeners : Object
list of events and functions to call for this object,
For example :
list of events and functions to call for this object,
For example :
|
Roo.util.Observable | |
loadMask : Boolean
load mask when submit (default true)
load mask when submit (default true)
|
Roo.bootstrap.Form | |
method : String
GET | POST (default POST)
GET | POST (default POST)
|
Roo.bootstrap.Form | |
name : string
Specifies name attribute
Specifies name attribute
|
Roo.bootstrap.Component | |
style : String
any extra css
any extra css
|
Roo.bootstrap.Component | |
timeout : Number
Timeout for form actions in seconds (default is 30 seconds).
Timeout for form actions in seconds (default is 30 seconds).
|
Roo.bootstrap.Form | |
tooltip : string
Text for the tooltip
Text for the tooltip
|
Roo.bootstrap.Component | |
url : String
The URL to use for form actions if one isn't supplied in the action options.
The URL to use for form actions if one isn't supplied in the action options.
|
Roo.bootstrap.Form | |
xattr : Object
extra attributes to add to 'element' (used by builder to store stuff.
extra attributes to add to 'element' (used by builder to store stuff.)
|
Roo.bootstrap.Component |
Method | Defined By | |
---|---|---|
new Roo.bootstrap.Form
(Object config)
Create a new Roo.bootstrap.Form
Create a new Roo.bootstrap.Form
|
||
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
clearInvalid
()
:
BasicForm
Clears all invalid messages in this form.
Clears all invalid messages in this form.
|
Roo.bootstrap.Form | |
destroy
()
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}.
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}. |
Roo.Component | |
disable
()
:
Roo.Component
Disable this component.
Disable this component.
|
Roo.Component | |
Performs a predefined action (submit or load) or custom actions you define on this form.
Performs a predefined action (submit or load) or custom actions you define on this form.
|
Roo.bootstrap.Form | |
enable
()
:
Roo.Component
Enable this component.
Enable this component.
|
Roo.Component | |
findField
(String id)
:
Find a Roo.form.Field in this form by id, dataIndex, name or hiddenName
Find a Roo.form.Field in this form by id, dataIndex, name or hiddenName
|
Roo.bootstrap.Form | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
focus
(Boolean selectText)
:
Roo.Component
Try to focus this component.
Try to focus this component.
|
Roo.Component | |
getChildContainer
()
:
Roo.Element
Fetch the element to add children to
Fetch the element to add children to
|
Roo.bootstrap.Component | |
getEl
()
:
Roo.Element
Returns the underlying {link Roo.Element}.
Returns the underlying {link Roo.Element}.
|
Roo.Component | |
getFieldValues
()
:
Object
Returns the fields in this form as an object with key/value pairs.
Returns the fields in this form as an object with key/value pairs.
This differs from getValues as it calls getValue on each child item, rather than using dom data.
|
Roo.bootstrap.Form | |
getId
()
:
String
Returns the id of this component.
Returns the id of this component.
|
Roo.Component | |
Roo.bootstrap.Form | ||
Roo.util.Observable | ||
hide
()
Hide a component - adds 'hidden' class
Hide a component - adds 'hidden' class
|
Roo.bootstrap.Component | |
initEvents
()
Initialize Events for the element
Initialize Events for the element
|
Roo.bootstrap.Component | |
isDirty
()
:
Returns true if any fields in this form have changed since their original load.
Returns true if any fields in this form have changed since their original load.
|
Roo.bootstrap.Form | |
isValid
()
:
Returns true if client-side validation on the form is successful.
Returns true if client-side validation on the form is successful.
|
Roo.bootstrap.Form | |
isVisible
()
Returns true if this component is visible.
Returns true if this component is visible.
|
Roo.Component | |
markInvalid
(Array/Object errors)
:
BasicForm
Mark fields in this form invalid in bulk.
Mark fields in this form invalid in bulk.
|
Roo.bootstrap.Form | |
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
purgeListeners
()
Removes all listeners for this object
Removes all listeners for this object
|
Roo.util.Observable | |
Roo.util.Observable | ||
render
(String/HTMLElement/Element container)
If this is a lazy rendering component, render it to its container element.
If this is a lazy rendering component, render it to its container element.
|
Roo.Component | |
reset
()
:
BasicForm
Resets this form.
Resets this form.
|
Roo.bootstrap.Form | |
setDisabled
(Boolean disabled)
Convenience function for setting disabled/enabled by boolean.
Convenience function for setting disabled/enabled by boolean.
|
Roo.Component | |
setValues
(Array/Object values)
:
BasicForm
Set values for fields in this form in bulk.
Set values for fields in this form in bulk.
|
Roo.bootstrap.Form | |
setVisible
(Boolean visible)
:
Roo.Component
Convenience function to hide or show this component by boolean.
Convenience function to hide or show this component by boolean.
|
Roo.Component | |
show
()
Show a component - removes 'hidden' class
Show a component - removes 'hidden' class
|
Roo.bootstrap.Component | |
tooltipEl
()
:
Roo.Element
Fetch the element to display the tooltip on.
Fetch the element to display the tooltip on.
|
Roo.bootstrap.Component | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
actioncomplete (Form this, Action action)
Fires when an action is completed.
Fires when an action is completed.
|
Roo.bootstrap.Form | |
actionfailed (Form this, Action action)
Fires when an action fails.
Fires when an action fails.
|
Roo.bootstrap.Form | |
beforeaction (Form this, Action action)
Fires before any action is performed.
Fires before any action is performed. Return false to cancel the action.
|
Roo.bootstrap.Form | |
beforedestroy (Roo.Component this)
Fires before the component is destroyed.
Fires before the component is destroyed. Return false to stop the destroy.
|
Roo.Component | |
beforehide (Roo.Component this)
Fires before the component is hidden.
Fires before the component is hidden. Return false to stop the hide.
|
Roo.Component | |
beforerender (Roo.Component this)
Fires before the component is rendered.
Fires before the component is rendered. Return false to stop the render.
|
Roo.Component | |
beforeshow (Roo.Component this)
Fires before the component is shown.
Fires before the component is shown. Return false to stop the show.
|
Roo.Component | |
childrenrendered (Roo.bootstrap.Component this)
Fires when the children have been rendered.
Fires when the children have been rendered..
|
Roo.bootstrap.Component | |
clientvalidation (Form this, Boolean valid)
If the monitorValid config option is true, this event fires repetitively to notify of valid state
If the monitorValid config option is true, this event fires repetitively to notify of valid state
|
Roo.bootstrap.Form | |
destroy (Roo.Component this)
Fires after the component is destroyed.
Fires after the component is destroyed.
|
Roo.Component | |
disable (Roo.Component this)
Fires after the component is disabled.
Fires after the component is disabled.
|
Roo.Component | |
enable (Roo.Component this)
Fires after the component is enabled.
Fires after the component is enabled.
|
Roo.Component | |
hide (Roo.Component this)
Fires after the component is hidden.
Fires after the component is hidden.
|
Roo.Component | |
render (Roo.Component this)
Fires after the component is rendered.
Fires after the component is rendered.
|
Roo.Component | |
show (Roo.Component this)
Fires after the component is shown.
Fires after the component is shown.
|
Roo.Component |