EccLayout
EccLayout places its children below each other (vertical) or next to each other (horizontal), aligned left or right.
TSX
import { EccLayout } from "@/ecc/components/forms/EccLayout";
Example
TSX
<EccLayout layout="horizontal" align="left">
<EccText fieldLabel="Cost center" value="inputs.purchase.requesterCostCenter" data={task} />
<EccText fieldLabel="Room" value="inputs.purchase.deliveryRoom" data={task} />
</EccLayout>
Ecc components in this example: EccText - how to use them is described in UI Components.
Props
Prop
Values
Default
Description
|
|
| direction |
|
|
| alignment of the children |
EccLayout is a flex container (classes ecc-layout, ecc-layout-<layout>, ecc-layout-<align>). For columns of a fixed width use the Bootstrap grid (row, col-md-*) instead.
Related
Page
Relation
overview of all layout components | |
groups the arranged fields under a label |
Was this section helpful?
On this page
- EccLayout