LIDOR SYSTEMS

Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference


controlStyle

Specifies an object that holds a style which determines the appearance of all parts of the TreeGrid.

Property Value

An Object which contains all style settings in TreeGrid component.

controlStyle = {

general: {

disabled: 'iui-treegrid-disabled',

focused: 'iui-treegrid-focused',

normal: 'iui-treegrid',

hovered: 'iui-treegrid-hovered',

selected: 'iui-treegrid-selected'

},

column: {

header: {

cell: 'iui-treegrid-column-header-cell',

disabled: 'iui-treegrid-column-header-disabled',

normal: 'iui-treegrid-column-header',

hovered: 'iui-treegrid-column-header-hovered',

selected: 'iui-treegrid-column-header-selected'

},

footer: {

cell: 'iui-treegrid-column-footer-cell',

disabled: 'iui-treegrid-column-footer-disabled',

normal: 'iui-treegrid-column-footer',

hovered: 'iui-treegrid-column-footer-hovered',

selected: 'iui-treegrid-column-footer-selected'

},

sorting: {

normal: {

ascending: 'iui-sort-ascending',

descending: 'iui-sort-descending'

},

selected: {

ascending: 'iui-sort-ascending-selected',

descending: 'iui-sort-descending-selected'

}

}

},

row: {

general: {

disabled: 'iui-treegrid-row-disabled',

focused: 'iui-treegrid-row-focused',

normal: 'iui-treegrid-row',

hovered: 'iui-treegrid-row-hovered',

selected: 'iui-treegrid-row-selected'

},

expandBox: {

general: 'iui-treegrid-expand-box',

animated: 'iui-treegrid-expand-box-load',

expanded: 'iui-treegrid-expand-box-open',

collapsed: 'iui-treegrid-expand-box-close'

},

cell: {

disabled: 'iui-treegrid-row-cell-disabled',

focused: 'iui-treegrid-row-cell-focused',

normal: 'iui-treegrid-row-cell',

hovered: 'iui-treegrid-row-cell-hovered',

selected: 'iui-treegrid-row-cell-selected'

}

},

gridLines: {

none: 'iui-grid-lines-none',

horizontal: 'iui-grid-lines-horizontal',

vertical: 'iui-grid-lines-vertical',

both: 'iui-grid-lines-both',

}

}

Remarks

This property is accessed through 'control-style' attribute of TreeView component

You can use this property to change the appearance of the TreeGrid dynamically from code. By simply setting custom CSS classes in your app code and apply the name of the class to some of above style fields, you can override the default appearance of the TreeGrid.

Version Information

Supported in: v1.0.

See Also