Empty
Explains why a region is empty and can offer the next action.
When to use
- Explain an empty list or search result and give a way forward when available.
Examples
No shipments
Loading the example
<k:Empty icon="truck" title="No shipments today" text="Scheduled shipments will appear here."/>Recover from an empty search
Loading the example
<k:Stack gap="10">
<k:Empty visible="{/filtered}" icon="search" title="No matching orders" text="The current filter excludes all orders.">
<k:Button text="Clear filter" press=".onClear"/>
</k:Empty>
<k:Text visible="{= !${/filtered} }" text="SO-104 · Ready to pack"/>
</k:Stack>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.NoOrders", {
onClear() {
this.getView().getModel().setProperty("/filtered", false);
Toast.show("Filter cleared");
}
}));API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
icon | string | inbox | Icon name |
title | string | Heading | |
text | string | Explanation |
Aggregations
| Name | Type | Description |
|---|---|---|
actions | sap.ui.core.Control[] | Actions the user can take next |