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 ...")
 
 
(2 intermediate revisions by one other user not shown)
Line 21: Line 21:
 
|-
 
|-
  
|rowspan="2"|focus
+
|rowspan="2"|focus (<span style="color: red;">deprecated</span>, use [[Pages#UI_Attributes_2|page's focus]] attribute instead)
 
|true
 
|true
 
|Focus the field. Only a single object should have this attribute at "true".
 
|Focus the field. Only a single object should have this attribute at "true".
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

Latest revision as of 12:19, 1 June 2020

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 (deprecated, use page's focus attribute instead) 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.