ColumnLayout
Shows a list, a record and its detail side by side.
kor/ui/ColumnLayoutSource
When to use
- Use it when people move quickly between records.
Examples
Open a record
<k:ColumnLayout columns="{/columns}" height="300px" listWidth="260">
<k:list><k:List press=".onOpen"><k:ListItem key="1" title="Deniz Tekstil"/><k:ListItem key="2" title="Atlas Lojistik"/></k:List></k:list>
<k:record><k:Details columns="2"><k:Detail label="Order" value="4711"/><k:Detail label="Total" value="18.400 TRY"/></k:Details></k:record>
</k:ColumnLayout>
sap.ui.define(["sap/ui/core/mvc/Controller"], (Controller) => Controller.extend("sample.Columns", {
onOpen() {
this.getView().getModel().setProperty("/columns", 2);
}
}));
API
Properties
| Name | Type | Default | Description |
|---|
columns | int | 1 | Number of open columns, 1 to 3 |
full | boolean | false | Whether the last column takes all the space |
height | string | 100% | Height |
listWidth | int | 340 | List width in pixels |
navigation | boolean | true | Whether to show back, expand and close buttons |
Aggregations
| Name | Type | Description |
|---|
list | sap.ui.core.Control[] | First column |
record | sap.ui.core.Control[] | Second column |
detail | sap.ui.core.Control[] | Third column |
Events
| Name | Type | Description |
|---|
close | columns: int | The last column is closing. preventDefault stops it |
Related
SplitterRecordPage