Sheet
Opens record details alongside the current page.
When to use
- Keep the list available while the user inspects a record.
Examples
Open and dismiss
Loading the example
<k:Stack align="flex-start">
<k:Button text="Show details" press=".onOpen"/>
<k:Sheet id="details" title="Order SO-104">
<k:Text text="The order is waiting for packing."/>
</k:Sheet>
</k:Stack>sap.ui.define(["sap/ui/core/mvc/Controller"], (Controller) => Controller.extend("sample.BasicSheet", {
onOpen() {
this.byId("details").setOpen(true);
}
}));A footer action
Loading the example
<k:Stack align="flex-start">
<k:Button text="Review the shipment" press=".onOpen"/>
<k:Sheet id="details" title="Shipment SH-104" subtitle="North warehouse">
<k:content><k:Text text="Three pallets are ready for collection."/></k:content>
<k:footer><k:Button kind="primary" text="Mark as reviewed" press=".onDone"/></k:footer>
</k:Sheet>
</k:Stack>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.ShipmentSheet", {
onOpen() {
this.byId("details").setOpen(true);
},
onDone() {
this.byId("details").setOpen(false);
Toast.show("Shipment reviewed");
}
}));API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
open | boolean | false | Whether the sheet is open |
title | string | Title | |
subtitle | string | Subtitle | |
width | int | 480 | Width in pixels |
Aggregations
| Name | Type | Description |
|---|---|---|
actions | sap.ui.core.Control[] | Header actions |
content | sap.ui.core.Control[] | Panel body |
footer | sap.ui.core.Control[] | Footer actions |
Events
| Name | Type | Description |
|---|---|---|
close | The sheet was closed |