Class “ConstraintLayout”

Object > Layout > ConstraintLayout

The default, constraints-based layout.

Constructor public
Singleton No
Namespace tabris
Direct subclasses None
JSX support No


import {Composite, ConstraintLayout} from 'tabris';

new Composite({layout: new ConstraintLayout({padding: 16})});


new ConstraintLayout(parameterObject?)

Parameter Type Optional Description
parameterObject {padding?: BoxDimensions | number} Yes Sets the padding property. If set to a number, this value will be used for all four edge values. Defaults to 0.

Static Properties


Instance of ConstraintLayout used as the default layout property value of Composite, Page, Tab and Canvas. Equivalent to new ConstraintLayout()

Type ConstraintLayout
Settable Yes