Difference between revisions of "Template:UI Object Attributes (Field)"

From HSYCO
Jump to navigation Jump to search
(Created page with "=== Field attributes === {| class="wikitable" !Name !Value !Description |- |rowspan="2"|enabled |true |Field is enabled |- |false |Field is disabled |- |rowspan="2"|autosend ...")
 
Line 27: Line 27:
 
|false
 
|false
 
|Reset focus
 
|Reset focus
 +
|-
  
 
|rollback
 
|rollback
Line 39: Line 40:
 
|false
 
|false
 
|Won't restore the value on errors.
 
|Won't restore the value on errors.
 +
|-
  
 
|rowspan="2"|error
 
|rowspan="2"|error

Revision as of 13:06, 20 December 2013

Field attributes

Name Value Description
enabled true Field is enabled
false Field is disabled
autosend true Automatically sends the value on changes. It's the default behaviour when there are no submit objects on the page or in a parent container (if the field is inside a container).
false Won't send the value on changes. It's the default behaviour when there's a submit object on the page or in a parent container.
focus true Focus the field. Only a single object should have this attribute at "true".
false Reset focus
rollback true Restores the previously saved value.
rollbackenabled true Automatically restores the previous value on an error (if the value isn't valid or the remote request resolved in an error).
false Won't restore the value on errors.
error true Manually shows an error feedback on the field (won't modify the current field value).
false Hides the error visualization.