Constraints
setConstraints(panelid, constraints, doAnimation)
Since 5.3.2 version
If the panel (constraint panel, form, filter, editable panel, grid ecc) is inside to a constraints panel, you can use this function for change panel constraints.
Argument
Description
paneid
constraint panel idetifier
constraints
the array of controls constraint you want to change
doAnimation
true/false if you want animate the constraint changes
For each elements of the constraints array you have to specify: the panelId (or attributeName)of the panel (or control) you want to change and the new constraints values.
Note: if you don't specify a control constraint this constraint will removed from the panel (or control).
This is the available constraint property:
Since 6.0.2 version
Example:
setConstraints(panelid, constraints, doAnimation)
Since 5.3.2 version
If the panel (form, filter or editable panel) has the constraints layout enable, you can use this function for change controls constraints.
Argument
Description
paneid
panel idetifier
constraints
the array of controls constraint you want to change
doAnimation
true/false if you want animate the constraint changes
For each elements of the constraints array you have to specify the attributeName of the control you want to change and the new constraints values.
Note: if you don't specify a control constraint this constraint will removed from the control.
This is the available constraint property:
Example:
setConstraint(panelId, attributeOrPanelID, constraints, doAnimation)
Since 5.3.2 version
Set the constraint of a panel or an attribute.
If panelId is a constraint panel the second params represents a panelId (form, grid, map etc).
If panelId is a form o filter panel with constraint layout enabled, the second params represents an attribute name.
Argument
Description
paneid
panel idetifier (constraint panel or form/filter panel with constraint layout)
panelId or attribute name
constraints
the control constraint you want to change
doAnimation
true/false if you want animate the constraint changes
Last updated