cpr.controls.Grid$Styler
Grid's UIControlStyler
Index
Properties
| declaring type
|
UIControlStyler |
| type
|
Boolean |
| readonly
|
Returns whether to remove style
|
| declaring type
|
UIControlStyler |
| type
|
String |
| readonly
|
Returns the style name.
|
Methods
Add a class.
| name |
type |
description |
| className
|
#css-class |
class name |
Add a media class.
| name |
type |
description |
| media
|
String |
media name. |
| className
|
String |
class name. |
Starts the animation with the given intermediate state.
It is animated until it returns to its original state after entering the intermediate state.
| name |
type |
description |
| state
|
{[key:string]: String} |
Intermediate CSS state. You can not change the style value of a layout element, such as its position or size. |
| durationoptional
|
Number |
default0.3
|
The animation length, in seconds, before the intermediate state is reached. |
| timingFunctionoptional
|
String |
defaultanimation.TimingFunction.EASE_IN_OUT
|
Animation timing functions, available values are declared in cpr.animation.TimingFunction. |
Starts animation from the given state to the current state.
| name |
type |
description |
| state
|
{[key:string]: String} |
Start CSS state. You can not change the style value of a layout element, such as its position or size. |
| durationoptional
|
Number |
default0.3
|
The animation length, in seconds. |
| timingFunctionoptional
|
String |
defaultanimation.TimingFunction.EASE_IN_OUT
|
Animation timing functions, available values are declared in cpr.animation.TimingFunction. |
Starts the animation with the given end state.
| name |
type |
description |
| state
|
{[key:string]: String} |
Exit CSS state. You can not change the style value of a layout element, such as its position or size. |
| durationoptional
|
Number |
default0.3
|
The animation length, in seconds. |
| timingFunctionoptional
|
String |
defaultanimation.TimingFunction.EASE_IN_OUT
|
Animation timing functions, available values are declared in cpr.animation.TimingFunction. |
Bind that css property.
| name |
type |
description |
| property
|
String |
The css attribute name to bind. |
Get the class binding factory.
Get all specified CSS properties in JSON format.
| return
|
{[key:string]: String} |
|
Get the attribute CSS property value.
| name |
type |
description |
| key
|
String |
property name to get value |
Specifies the value of a specific CSS property.
| name |
type |
description |
| key
|
String |
CSS property name to assign value to |
| value
|
String |
The value to specify. |
Specify multiple CSS properties at once.
| name |
type |
description |
| json
|
{[key:string]: String} |
A JSON object with keys and values to specify. |
Removes the objects contained in the style.
Returns the default class name.
| return
|
#css-class |
Default class name |
Returns the bind context.
Get binding information for a specific CSS property.
| name |
type |
description |
| property
|
String |
Style attribute name from which to get binding information. |
| return
|
BindInfo |
Binding information object. |
Returns the value of the corresponding css property.
If no value is returned, it returns to the specified default value.
| name |
type |
description |
| key
|
String |
css property name |
| defaultValue
|
String |
The default value for the property. |
Get the CSS class binding information for the styler.
| return
|
BindInfo |
Class binding information object. |
Returns the class name of the control.
| return
|
#css-class[] |
class name. |
Sets the css property of the media.
| name |
type |
description |
| media
|
String |
media name. |
| key
|
String |
property name. |
| defaultValue
|
String |
The default value for the property. |
Returns the class name of the corresponding media of the control.
| name |
type |
description |
| media
|
String |
media name. |
Check class ownership.
| name |
type |
description |
| className
|
#css-class |
Class to check. |
| name |
type |
description |
| media
|
String |
|
| return
|
{[key:string]: String} |
|
| name |
type |
description |
| media
|
String |
|
| property
|
String |
|
| name |
type |
description |
| media
|
String |
|
| property
|
String |
|
| value
|
String |
|
| name |
type |
description |
| media
|
String |
|
| set
|
{[key:string]: String} |
|
Delete the class.
| name |
type |
description |
| className
|
#css-class |
class name |
Removes the class name of the corresponding media.
| name |
type |
description |
| media
|
String |
media name. |
| classNameoptional
|
String |
class name. |
Removes the corresponding property of the configured media style.
| name |
type |
description |
| media
|
String |
media name. |
| property
|
String |
property name. |
Removes the corresponding property of the set style.
| name |
type |
description |
| propertyName
|
String |
property name |
Set more than two classes.
example:
control.style.setClasses("buttonStyle", "imageStyle");
| name |
type |
description |
| classNames
|
#css-class[] |
The class names to add. |
Set two or more classes in media.
| name |
type |
description |
| media
|
String |
media name. |
| classNames
|
String[] |
class name |
Unbind to that CSS property.
| name |
type |
description |
| property
|
String |
CSS property name to unbind. |