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.
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:
height
width
maxHeight
maxWidth
minHeight
minWidth
layoutConstraintLeftToLeftOf: platform_parent or panelId or a control attributeName.
layoutConstraintLeftToRightOf: platform_parent or panelId or a control attributeName.
layoutConstraintRightToLeftOf: platform_parent or panelId or a control attributeName.
layoutConstraintRightToRightOf: platform_parent or panelId or a control attributeName.
layoutConstraintTopToTopOf: platform_parent or panelId or a control attributeName.
layoutConstraintTopToBottomOf: platform_parent or panelId or a control attributeName.
layoutConstraintBottomToTopOf: platform_parent or panelId or a control attributeName.
layoutConstraintBottomToBottomOf: platform_parent or panelId or a control attributeName.
marginTop
marginBottom
marginLeft
marginRight
If the panel (form, filter or editable panel) has the constraints layout enable, you can use this function for change controls constraints.
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:
height
width
maxHeight
maxWidth
minHeight
minWidth
layoutConstraintLeftToLeftOf: platform_parent or a control attributeName.
layoutConstraintLeftToRightOf: platform_parent or a control attributeName.
layoutConstraintRightToLeftOf: platform_parent or a control attributeName.
layoutConstraintRightToRightOf: platform_parent or a control attributeName.
layoutConstraintTopToTopOf: platform_parent or a control attributeName.
layoutConstraintTopToBottomOf: platform_parent or a control attributeName.
layoutConstraintBottomToTopOf: platform_parent or a control attributeName.
layoutConstraintBottomToBottomOf: platform_parent or a control attributeName.
marginTop
marginBottom
marginLeft
marginRight