Skip to main content

Row


With the row component, you will be able to align multiple (child) components (placed within its section) in a horizontal plane. The area within the row is also horizontally scrollable - if the space occupied by the no. of (child) components "exceed the screen space" allotted for the row's horizontal section. This screen space can be adjusted in the layout properties section.

Row Layout Properties

Much like the grid, the row component too relies heavily on its layout properties to provide much of its customization features. To access the layouts tab click on the "ruler" icon (last from left) on the top-right of the screen. The following are all the layout configurations that are available for the Row component:

Row Layout PropertyDescription
Distribute
(Left / Right / Center
Space Between / Space Around / Space Evenly)
Arranges all components in the row with a single click. RowRowRow
Left, Right, & Center: Distributes the components to the Left, Right, or the Center.
Space Between, Around, & Evenly: Distributes the components horizontally with the corresponding space options between and around them.
Note: These only reflect if there is enough free space within the row.
AlignSimilarly, the Alignment property distributes the components vertically within the row.
Wrap

Row
Selecting the "Wrap on overflow" checkbox makes the components drop down to the next row if they exceed the horizontal space of the row.
Row
Row

(Child Component) Layout Properties

These two layout properties are available only for the Row/Column's (child) components.

Grow - The component's size increases to occupy the maximum available space within the row. Its value in the "Grow" field determines the "ratio" of allocated space corresponding to other components in the row. (Note: The row must have available free space for this to reflect.)

Shrink - The size of the component is shrunk with respect to the other components sharing the row space. The value provided in the "Shrink" field determines the ratio.


Layout PropertyDescription
Span/Row Span
(Available only if placed within a grid or directly on the canvas)
The no. of horizontal/vertical cells the column occupies within the said grid/canvas. Note: The "parent" layer must have the appropriate no. of grids/rows.
GapSets the space between the individual components within the row.
MarginSets the space between the row's and the canvas's borders. The checkbox next to this field (if selected) allows you to set the margin thickness on each side.
PaddingSets the space between the row border's inner edge and the components within the row. The checkbox next to this field (if selected) allows you to set the padding thickness on each side.
Horizontal
(Left/Center/Right)


(Available only if placed within a grid or directly on the canvas)
Sets the horizontal alignment of the component within its occupied cell space.
Grid
(For components that do not have free cell spaces, the alignment changes do not show.)
Vertical
(Top/Center/Bottom)


(Available only if placed within a grid or directly on the canvas)
Sets the vertical alignment of the component within its occupied cell space.
Grid
(For components that do not have free cell space, the alignment changes do not show.)
Width/Height
(%, px, Auto, Max, Min)
Sets the width/height of the component. By default, the maximum width and height are set to 100 % of the cell's dimension it occupies. (Note: The parent grid's configurations determine the cell dimension.) (Note: The cell dimension is determined by the parent grid's configurations.)
- (Percent) % -Sets the percentage of space the component will use within the allocated cell (of its "binding parent" container - Canvas/Grid).
- (Pixel) px -Sets the size to the exact pixel specified.
- Auto -Sets the component to occupy a dynamic width or height (ranging from between the "Max" range and the "Min" range) based on the available cell space.
(Note: If the Absolute checkbox is selected, then setting to Auto makes the component occupy the entire grid space.)
- Max -Sets the component to occupy 100% of its "default" intrinsic width/height.
- Min -Sets the component to render in its min possible size - determined by the maximum size of the component's wrapped "text" value.
AbsoluteUnbinds the component from its assigned cell/space and moves it to the "Canvas".
Note:
When selecting the "Absolute" checkbox, four direction fields (Top, Right, Bottom, and Left) are enabled. Changing the values in these fields (by entering a number or using the up/down arrow keys) controls the position of the component on the canvas - both horizontally and vertically. The values of the Right and Top fields take precedence over the values of the Left and Bottom fields, respectively.
Additionally, you can use the Width/Height properties of the component to customize its appearance.
FixedSets the component to ignore its assigned cell and grid space/boundaries and attaches itself to the very bottom of the canvas.
Border WidthChanges the thickness of the grid's borders.
Border RadiusChanges the curve-angle of the border's edges.
Font SizeSets the size of the text within the row.
Font Weight
Range - 100 to 900
(@ increments of 100)
Sets the thickness of the text within the row.

ColorsDescription
BackgroundChanges the color of the row's background. (Note: To change the color, click on the color strip next to the respective fields. Then select the color of your choice from the color picker tool that pops up.)
ColorChanges the color of the text.
Border ColorChanges the color of the row's borders.

Row Properties

The row component features the basic set of widget properties. To access its properties tab, click on the "equalizer" icon (3rd from left) on the top-right of the screen. The Properties tab includes the following options; let’s take a look at them:

  • ID - A unique alpha-numeric code that’s auto-generated when the component is placed on the canvas.

  • Visible - A checkbox that lets you show/hide the component on app deployment.

  • Hide/Show Element - Lets you set the condition to either hide/show the component after app deployment.

  • Label - Display the name of the component on the app.

[Note: Make sure that the row is your currently selected widget]


API Methods

deleteAsset

Deletes the asset with a specific ID.

deleteAsset(assetInstanceID: string): void

importAsset

Imports the asset with a specific ID.

importAsset(assetId: string, {bindPrefix: string, after?: string}): string

setLabel

Sets a Label for the component.

setLabel(label: string): void

setReadOnly

Sets the ReadOnly flag for this component.

setReadOnly(readOnly: boolean): void

setVisibility

Sets the Visibility flag for this component.

setVisibility(visible: boolean): void

setVisibilityCondition

Sets the visibility condition for this component.

setVisibilityCondition(condition: string): void

Event Handlers

Event handlers allow you to set triggers for various actions based on the fired events. They are as follows:

onClick

onClick - Sets the actions to be triggered when the component is clicked.