Styleable
Configs
2
Configs
2Initial CSS variables to set.
Each key will be applied as a CSS variable to the target elements style. Key names are hyphenated and prefixed with cssVarPrefix in the process. For example:
{
cssVarPrefix : 'taskboard',
css : {
cardBackground : '#333'
}
}
Results in the css var --taskboard-card-background being set to #333.
cssVarPrefix: String
CSS variable prefix, appended to the keys used in css.
For example:
{
cssVarPrefix : 'taskboard',
css : {
cardBackground : '#333'
}
}
Results in the css var --taskboard-card-background being set to #333.
Bryntum widgets defaults to using -b-{type} as prefix: --b-button-font-size etc.
Properties
3
Properties
3Class hierarchy
Identifies an object as an instance of Styleable class, or subclass thereof.
Identifies an object as an instance of Styleable class, or subclass thereof.
DOM
Allows runtime manipulating of CSS variables.
See css for more information.
taskBoard.css.columnBackground = '#ccc';
// Will set "--taskboard-column-background : #ccc"