Property of FormElement
Syntax
Reading style property:
var value = control.style.style-property;
Changing style property:
control.style.style-property = property-value;
Description
The style object is a collection of standard style properties reflecting FormElement's current run-time state. Assigning a new value to any of the style properties results in a corresponding change in the FormElement's appearance.
Properties
Property | Description |
---|---|
top | Control's top coordinate in its parent New in package 164.2 |
left | Control's left coordinate in its parent New in package 164.2 |
width | Control's width New in package 164.2 |
height | Control's height New in package 164.2 |
color | Control's text color |
borderStyle | Style of control's borders |
[borderWidth] | Control's border width, in pixels New in package 166 |
borderColor | Control's border color |
backgroundColor | Control's background color |
[backgroundImage] | Control's background image |
visibility | Control's visibility |
[font] | Control's font New in package 166 |
textOverflow | Specifies text overflow behavior New in package 166 |
[textAlign] | Control's text alignment New in package 166 |
[textVerticalAlign] | Control's text vertical alignment New in package 166 |
overflow | Mod of display of both horizontal and vertical scrollbars in the Group control New in package 166 |
overflowX | Mod of display of horizontal scrollbar in the Group control New in package 168 |
overflowY | Mod of display of vertical scrollbar in the Group control New in package 168 |
cursor | Control's cursor New in package 166 |