cpr.controls.Dialog$Styler

Dialog's UIControlStyler
Hierarchy

Index

Properties
Name Type Description
body UIControlStyler The Body area style of the Dialog.
disposed Boolean Returns whether to remove style
header UIControlStyler The Header area style of the Dialog.
name String Returns the style name.
overlay UIControlStyler The area style that appears if the Dialog is modal.
transform CSSTransformContext Get the transform editing context.
Methods
Name Return Type Description
addClass Add a class.
addMediaClass Add a media class.
animateAndReverse UIControlStyler Starts the animation with the given intermediate state.
animateFrom UIControlStyler Starts animation from the given state to the current state.
animateTo UIControlStyler Starts the animation with the given end state.
bind IBindFactory Bind that css property.
bindClass IBindFactory Get the class binding factory.
css {[key:string]: String} Get all specified CSS properties in JSON format.
dispose Removes the objects contained in the style.
getBaseClassName #css-class Returns the default class name.
getBindContext BindContext Returns the bind context.
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 #css-class[] Returns the class name of the control.
getMediaCSS String Sets the css property of the media.
getMediaClasses String[] Returns the class name of the corresponding media of the control.
hasClass Boolean Check class ownership.
mediaCss {[key:string]: String}
removeClass Delete the class.
removeMediaClass Removes the class name of the corresponding media.
removeMediaStyle Removes the corresponding property of the configured media style.
removeStyle Removes the corresponding property of the set style.
setClasses Set more than two classes.
setMediaClasses Set two or more classes in media.
unbind Unbind to that CSS property.
unbindClass Remove class binding.

Properties

body
type UIControlStyler
The Body area style of the Dialog.
disposed
declaring type UIControlStyler
type Boolean
readonly
Returns whether to remove style
header
type UIControlStyler
The Header area style of the Dialog.
name
declaring type UIControlStyler
type String
readonly
Returns the style name.
overlay
type UIControlStyler
The area style that appears if the Dialog is modal.
transform
declaring type UIControlStyler
type CSSTransformContext
readonly
Get the transform editing context.

Methods

addClass(className)
declaring typeUIControlStyler
Add a class.
Parameters
name type description
className #css-class class name
addMediaClass(media, className)
declaring typeUIControlStyler
Add a media class.
Parameters
name type description
media String media name.
className String class name.
animateAndReverse(state, duration, timingFunction)
declaring typeUIControlStyler
Starts the animation with the given intermediate state. It is animated until it returns to its original state after entering the intermediate state.
Parameters
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.
return UIControlStyler
animateFrom(state, duration, timingFunction)
declaring typeUIControlStyler
Starts animation from the given state to the current state.
Parameters
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.
return UIControlStyler
animateTo(state, duration, timingFunction)
declaring typeUIControlStyler
Starts the animation with the given end state.
Parameters
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.
return UIControlStyler
bind(property)
declaring typeUIControlStyler
Bind that css property.
Parameters
name type description
property String The css attribute name to bind.
return IBindFactory
bindClass()
declaring typeUIControlStyler
Get the class binding factory.
return IBindFactory
css()
declaring typeUIControlStyler
Get all specified CSS properties in JSON format.
return {[key:string]: String}
css(key)
declaring typeUIControlStyler
Get the attribute CSS property value.
Parameters
name type description
key String property name to get value
return String
css(key, value)
declaring typeUIControlStyler
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)
declaring typeUIControlStyler
Specify multiple CSS properties at once.
Parameters
name type description
json {[key:string]: String} A JSON object with keys and values ​​to specify.
dispose()
declaring typeUIControlStyler
Removes the objects contained in the style.
getBaseClassName()
declaring typeUIControlStyler
Returns the default class name.
return #css-class Default class name
getBindContext()
declaring typeUIControlStyler
Returns the bind context.
return BindContext bind context
getBindInfo(property)
declaring typeUIControlStyler
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)
declaring typeUIControlStyler
Returns the value of the corresponding css property.
If no value is returned, it returns to the specified default value.
Parameters
name type description
key String css property name
defaultValue String The default value for the property.
return String
getClassBindInfo()
declaring typeUIControlStyler
Get the CSS class binding information for the styler.
return BindInfo Class binding information object.
getClasses()
declaring typeUIControlStyler
Returns the class name of the control.
return #css-class[] class name.
getMediaCSS(media, key, defaultValue)
declaring typeUIControlStyler
Sets the css property of the media.
Parameters
name type description
media String media name.
key String property name.
defaultValue String The default value for the property.
return String
getMediaClasses(media)
declaring typeUIControlStyler
Returns the class name of the corresponding media of the control.
Parameters
name type description
media String media name.
return String[]
hasClass(className)
declaring typeUIControlStyler
Check class ownership.
Parameters
name type description
className #css-class Class to check.
return Boolean
mediaCss(media)
declaring typeUIControlStyler
Parameters
name type description
media String
return {[key:string]: String}
mediaCss(media, property)
declaring typeUIControlStyler
Parameters
name type description
media String
property String
return String
mediaCss(media, property, value)
declaring typeUIControlStyler
Parameters
name type description
media String
property String
value String
mediaCss(media, set)
declaring typeUIControlStyler
Parameters
name type description
media String
set {[key:string]: String}
removeClass(className)
declaring typeUIControlStyler
Delete the class.
Parameters
name type description
className #css-class class name
removeMediaClass(media, className)
declaring typeUIControlStyler
Removes the class name of the corresponding media.
Parameters
name type description
media String media name.
classNameoptional String class name.
removeMediaStyle(media, property)
declaring typeUIControlStyler
Removes the corresponding property of the configured media style.
Parameters
name type description
media String media name.
property String property name.
removeStyle(propertyName)
declaring typeUIControlStyler
Removes the corresponding property of the set style.
Parameters
name type description
propertyName String property name
setClasses(classNames)
declaring typeUIControlStyler
Set more than two classes.
example:
control.style.setClasses("buttonStyle", "imageStyle");
Parameters
name type description
classNames #css-class[] The class names to add.
setMediaClasses(media, classNames)
declaring typeUIControlStyler
Set two or more classes in media.
Parameters
name type description
media String media name.
classNames String[] class name
unbind(property)
declaring typeUIControlStyler
Unbind to that CSS property.
Parameters
name type description
property String CSS property name to unbind.
unbindClass()
declaring typeUIControlStyler
Remove class binding.