cpr.controls.gridpart.GridStyler

Index

Properties
Name Type Description
disposed Boolean Returns whether to remove style
Methods
Name Return Type Description
addClass Add a class.
bind IBindFactory Bind that css property.
bindClass IBindFactory
css {[key:string]: String} Get all specified CSS properties in JSON format.
dispose Removes the objects contained in the style.
getBaseClassName String Returns the default class name.
getBindInfo BindInfo Get binding information for a specific CSS property.
getCSS String Returns the value of the corresponding css property.
getClassBindInfo BindInfo Get the CSS class binding information for the styler.
getClasses String[] Returns the class name of the control
hasClass Boolean Check class ownership.
removeClass Delete the class.
removeStyle Removes the corresponding property of the set style.
setClasses Set up more than one class.
unbind Unbind the css property.
unbindClass

Properties

disposed
type Boolean
readonly
Returns whether to remove style

Methods

addClass(className)
Add a class.
Parameters
name type description
className String class name
bind(cssProperty)
Bind that css property.
Parameters
name type description
cssProperty String The css attribute name to bind.
return IBindFactory
bindClass()
return IBindFactory
css()
Get all specified CSS properties in JSON format.
return {[key:string]: String}
css(key)
Get the attribute CSS property value.
Parameters
name type description
key String property name to get value
return String
css(key, value)
Specifies the value of a specific CSS property.
Parameters
name type description
key String CSS property name to assign value to
value String The value to specify.
css(json)
Specify multiple CSS properties at once.
Parameters
name type description
json {[key:string]: String} A JSON object with keys and values ​​to specify.
dispose()
Removes the objects contained in the style.
getBaseClassName()
Returns the default class name.
return String Default class name cpr.data.UIControlStyler.getBaseClassName Note
getBindInfo(property)
Get binding information for a specific CSS property.
Parameters
name type description
property String Style attribute name from which to get binding information.
return BindInfo Binding information object.
getCSS(key, defaultValue)
Returns the value of the corresponding css property.
If no value is returned, it returns to the specified default value. See cpr.data.UIControlStyler.getCSS .
Parameters
name type description
key String
defaultValue String
return String
getClassBindInfo()
Get the CSS class binding information for the styler.
return BindInfo Class binding information object.
getClasses()
Returns the class name of the control
return String[] class name. cpr.data.UIControlStyler.getClasses Notes
hasClass(className)
Check class ownership.
Parameters
name type description
className String Class to check.
return Boolean
removeClass(className)
Delete the class.
Parameters
name type description
classNameoptional String class name cpr.data.UIControlStyler.removeClass Note
removeStyle(key)
Removes the corresponding property of the set style. cpr.data.UIControlStyler.removeStyle
Parameters
name type description
key String
setClasses(classNames)
Set up more than one class.
Parameters
name type description
classNames String[] Class names to be added. Example:
control.style.setClasses("buttonStyle", "imageStyle");
cpr.data.UIControlStyler.setClasses
unbind(name)
Unbind the css property.
Parameters
name type description
name String unBind css property name
unbindClass()