abstract class StyledComponent : Component
Base class for components supporting CSS styling.
StyledComponent()
Base class for components supporting CSS styling. |
var background: Background?
Background of the current component. |
|
var border: Border?
Border of the current component. |
|
var borderBottom: Border?
Bottom border of the current component. |
|
var borderLeft: Border?
Left border of the current component. |
|
var borderRight: Border?
Right border of the current component. |
|
var borderTop: Border?
Top border of the current component. |
|
var color: Color?
Text color for the current component. |
|
var colorHex: Int?
Text color for the current component given in hex format (write only). |
|
var colorName: COLOR?
Text color for the current component given with named constant (write only). |
|
var height: CssSize?
Height of the current component. |
|
var margin: CssSize?
Margin of the current component. |
|
var marginBottom: CssSize?
Bottom margin of the current component. |
|
var marginLeft: CssSize?
Left margin of the current component. |
|
var marginRight: CssSize?
Right margin of the current component. |
|
var marginTop: CssSize?
Top margin of the current component. |
|
var maxHeight: CssSize?
Maximal height of the current component. |
|
var maxWidth: CssSize?
Maximal width of the current component. |
|
var minHeight: CssSize?
Minimal height of the current component. |
|
var minWidth: CssSize?
Minimal width of the current component. |
|
var opacity: Double?
Opacity of the current component. |
|
var padding: CssSize?
Padding of the current component. |
|
var paddingBottom: CssSize?
Bottom padding of the current component. |
|
var paddingLeft: CssSize?
Left padding of the current component. |
|
var paddingRight: CssSize?
Right padding of the current component. |
|
var paddingTop: CssSize?
Top padding of the current component. |
|
open var width: CssSize?
Width of the current component. |
abstract var parent: Component?
Parent of the current component. |
|
abstract var visible: Boolean
Visibility state of the current component. |
open fun getSnStyle(): List<StringPair>
Returns the list of String pairs defining CSS style attributes and their values. |
abstract fun addCssClass(css: String): Component
Adds given value to the set of CSS classes generated in html code of current component. |
|
abstract fun addSurroundingCssClass(css: String): Component
Adds given value to the set of CSS classes generated in html code of parent component. |
|
abstract fun getElement(): Node?
Returns DOM element bound to the current component. |
|
abstract fun getElementJQuery(): JQuery?
Returns JQuery element bound to the current component. |
|
abstract fun getElementJQueryD(): dynamic
Returns JQuery element bound to the current component as a dynamic type. |
|
abstract fun removeCssClass(css: String): Component
Removes given value from the set of CSS classes generated in html code of current component. |
|
abstract fun removeSurroundingCssClass(css: String): Component
Removes given value from the set of CSS classes generated in html code of parent component. |
open class Widget : StyledComponent
Base widget class. The parent of all component classes. |