Tooltip
Shows brief help on pointer hover or keyboard focus.
When to use
- Explain a control with a short supplement to its label.
Examples
Help on focus
Loading the example
<k:Button text="Refresh" press=".onRefresh">
<k:dependents><k:Tooltip text="Fetch the latest shipment list"/></k:dependents>
</k:Button>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.RefreshTip", {
onRefresh() {
Toast.show("Shipments refreshed");
}
}));Explain an export action
Loading the example
<k:Button kind="ghost" icon="download" text="Export CSV" press=".onExport">
<k:dependents><k:Tooltip text="Download all filtered rows as CSV"/></k:dependents>
</k:Button>sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.ExportTip", {
onExport() {
Toast.show("Export requested");
}
}));Keyboard
- Tab Esc
- Show help on focus or dismiss it.
API
Properties
| Name | Type | Default | Description |
|---|---|---|---|
text | string | Tooltip text | |
hint | string | Displayed keyboard shortcut |