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

From HSYCO
Jump to navigation Jump to search
 
(One intermediate revision 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".

Latest revision as of 11: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.