Horizontal layout lays all UI objects horizontally from left to right (by default) or from right to left.
In this example, we created a simple form using horizontal layout.
Horizontal layout constructor takes two optional parameters:
var layHorizontal = new THorizontalLayout(margin, padding);
Horizontal Layout Methods
| Method | Description |
|---|---|
| add | Adds UI object to the layout |
| setDirection | Sets layout direction left to right (ltr) or right to left (rtl). For example: layHorizontal.setDirection('rtl'); |