cpr.controls.layouts.Layout

Index

Properties
Name Type Description
animationDuration Number Gets the length, in seconds, of the animation to use when changing the layout constraints of the child controls.
animationTimingFunction String Gets the function of the animation to use when changing the layout constraints of child controls.
scrollable Boolean Gets whether scrolling is allowed when content is out of range.
type String
Methods
Name Return Type Description
bind IBindFactory Bind that property.
getBindContext BindContext
getBindInfo BindInfo Returns the bind property information for the control.
getChildrenByLayoutOrder UIControl[] Get child controls in the order they appear visually according to the layout constraints.
isAvailableBinding Boolean Returns whether the queried property is bindable and the binding has been configured to obtain a valid value.
isBindable Boolean Make sure it is a bindable property.
unbind Unbind that property.

Properties

animationDuration
type Number
get
Gets the length, in seconds, of the animation to use when changing the layout constraints of the child controls.
set
Specifies the length, in seconds, of the animation to use when changing the layout constraints of child controls. If the value is less than 0, animation is not performed.
animationTimingFunction
type String
get
Gets the function of the animation to use when changing the layout constraints of child controls.
set
Specifies the animation function to be used when changing the layout constraints of child controls. Possible values ​​are defined in cpr.animation.TimingFunction.
scrollable
type Boolean
get
Gets whether scrolling is allowed when content is out of range.
set
Specifies whether to allow scrolling if content is out of range.
type
type String

Methods

bind(propertyName)
Bind that property.
Parameters
name type description
propertyName #bindable-property_name The attribute name to bind.
return IBindFactory Factory showing bind type.
getBindContext()
return BindContext
getBindInfo(propertyName)
Returns the bind property information for the control.
Parameters
name type description
propertyName #bindable-property_name The name of the attribute being bound.
return BindInfo BindInfo Properties
getChildrenByLayoutOrder()
Get child controls in the order they appear visually according to the layout constraints. Floated controls are not included.
return UIControl[]
isAvailableBinding(propertyName)
Returns whether the queried property is bindable and the binding has been configured to obtain a valid value. Even if no binding is configured and a simple value is specified, it is treated as configured so that a valid value is obtained. For example, binding to a row index that does not exist in the DataSet is an invalid binding.
Parameters
name type description
propertyName #bindable-property_name Property name to check whether binding is valid.
return Boolean
isBindable(propertyName)
Make sure it is a bindable property.
Parameters
name type description
propertyName #bindable-property_name Attribute name
return Boolean Confirmation.
unbind(propertyName)
Unbind that property.
Parameters
name type description
propertyName #bindable-property_name Attribute name to unbind.