Overflow Toolbar - layout
Overflow Toolbar can contain the same controls as Toolbar with the added benefit that buttons that do not fit are moved to an overflow area when overflow occurs.
Z2UI5_CL_SMPC_APP_530
Controls
sap.m
UI5 1.71
The facts
- Repository
- abap2UI5/samples-controls
- Class
Z2UI5_CL_SMPC_APP_530- Source file
z2ui5_cl_smpc_app_530.clas.abap↗- Library
- sap.m
- UI5 entity
sap.m.GenericTag- Demo kit sample
sap.m.sample.OverflowToolbarSimple- SAP's own sample
- running at sdk.openui5.org ↗
- Minimum UI5
- 1.71 — the floor abap2UI5 holds its samples to
- In the playground
- runs in the browser, with no system and nothing installed
Keywords: generictag, generic, tag, sap.m, overflowtoolbarsimple, messagestrip, slider, overflowtoolbar, label, toolbarspacer, button, overflowtoolbarlayoutdata
Controls it builds
- sap.m.Button
- sap.m.CheckBox
- sap.m.GenericTag
- sap.m.Input
- sap.m.Label
- sap.m.MessageStrip
- sap.m.ObjectNumber
- sap.m.OverflowToolbar
- sap.m.OverflowToolbarLayoutData
- sap.m.RadioButton
- sap.m.SearchField
- sap.m.SegmentedButton
- sap.m.SegmentedButtonItem
- sap.m.Select
- sap.m.Slider
- sap.m.ToggleButton
- sap.m.ToolbarSeparator
- sap.m.ToolbarSpacer
- sap.ui.core.Item
- sap.ui.core.mvc.View
Read out of the builder chain by the abap2UI5 linter, not from the category this sample is filed under — which is what makes “which samples build one of these” a question the catalogue can answer at all.
Libraries
Run it here
The sample running, in this page — the app on its own, with no editor over it.
Switch to Playground with this code
Nothing is installed and nothing is sent anywhere: the ABAP is compiled to JavaScript in this browser and runs against abap2UI5 itself.
The ABAP
z2ui5_cl_smpc_app_530.clas.abap — 836 lines
Click a number to link to a line — shift-click for a range.
Read it on GitHub ↗
" @keywords generictag generic tag sap.m overflowtoolbarsimple messagestrip slider overflowtoolbar label toolbarspacer button overflowtoolbarlayoutdata
" @summary Overflow Toolbar can contain the same controls as Toolbar with the added benefit that buttons that do not fit are moved to an overflow area when overflow occurs.
CLASS z2ui5_cl_smpc_app_530 DEFINITION PUBLIC.
PUBLIC SECTION.
INTERFACES z2ui5_if_app.
DATA viewport TYPE i VALUE 100.
PROTECTED SECTION.
DATA client TYPE REF TO z2ui5_if_client.
METHODS view_display.
METHODS model_init.
PRIVATE SECTION.
ENDCLASS.
CLASS z2ui5_cl_smpc_app_530 IMPLEMENTATION.
METHOD z2ui5_if_app~main.
me->client = client.
IF client->check_on_init( ).
model_init( ).
view_display( ).
ELSEIF client->check_on_navigated( ).
view_display( ).
ENDIF.
ENDMETHOD.
METHOD view_display.
DATA(view) = z2ui5_cl_ui5_view_builder=>factory( ).
" onSliderMoved calls setWidth( value && '%' ) on all TEN toolbars - the port
" gives every toolbar the same expression binding over the two-way slider
" value, so the resize needs no round-trip at all
DATA(width) = |\{= ${ client->_bind( viewport ) } + '%' \}|.
view->ele( n = `View` ns = `mvc`
)->a( n = `xmlns` v = `sap.m`
)->a( n = `xmlns:core` v = `sap.ui.core`
)->a( n = `xmlns:mvc` v = `sap.ui.core.mvc`
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `Use this slider to resize the toolbars and observe their behaviour.`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->tag( `Slider`
)->a( n = `value` v = client->_bind( viewport )
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `When buttons have no special layout, they are all moved to the overflow area.`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->ele( `OverflowToolbar`
)->a( n = `id` v = `otb1`
)->a( n = `width` v = width
)->tag( `Label`
)->a( n = `text` v = `Buttons:`
)->tag( `ToolbarSpacer`
)->tag( `Button`
)->a( n = `text` v = `New`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Open`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Save`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Save as`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Cut`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Copy`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Paste`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Undo`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Redo`
)->a( n = `type` v = `Transparent`
" press="cmd:Share" runs the CommandExecution the view declares in
" mvc:dependents - no controller here, so the press carries the
" shareAction toast itself (see sidecar)
)->tag( `Button`
)->a( n = `text` v = `Share`
)->a( n = `type` v = `Transparent`
)->a( n = `press` v = client->follow_up_action( val = client->cs_event-control_global
t_arg = VALUE #( ( `MESSAGE_TOAST` ) ( `show` ) ( `Share action` ) ) )
)->end(
)->tag( `Label`
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `The Cut, Copy and Paste buttons have a special layout and never move to the overflow area.`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->ele( `OverflowToolbar`
)->a( n = `id` v = `otb2`
)->a( n = `width` v = width
)->tag( `Label`
)->a( n = `text` v = `Buttons:`
)->tag( `ToolbarSpacer`
)->tag( `Button`
)->a( n = `text` v = `New`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Open`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Save`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Save as`
)->a( n = `type` v = `Transparent`
)->ele( `Button`
)->a( n = `text` v = `Cut`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `NeverOverflow`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Copy`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `NeverOverflow`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Paste`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `NeverOverflow`
)->end(
)->end(
)->tag( `Button`
)->a( n = `text` v = `Undo`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Redo`
)->a( n = `type` v = `Transparent`
)->end(
)->tag( `Label`
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `The last two buttons have a special layout to always stay in the overflow area. Even if there is enough space for them, they will not be displayed.`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->ele( `OverflowToolbar`
)->a( n = `id` v = `otb3`
)->a( n = `width` v = width
)->tag( `Label`
)->a( n = `text` v = `Buttons:`
)->tag( `ToolbarSpacer`
)->tag( `Button`
)->a( n = `text` v = `New`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Open`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Save`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Save as`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Cut`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Copy`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Paste`
)->a( n = `type` v = `Transparent`
)->ele( `Button`
)->a( n = `text` v = `Undo`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `AlwaysOverflow`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Redo`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `AlwaysOverflow`
)->end(
)->end(
)->end(
)->tag( `Label`
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `The available priorities for the toolbar items are: AlwaysOverflow, Disappear, Low, High and NeverOverflow. By default the priority of each toolbar item is High. Items with AlwaysOverflow priority remain visible ` &&
`in the overflow area. Items with NeverOverflow priority remain visible in the toolbar. Items with Disappear, Low and High priority overflow depending on their priority and position in the toolbar. Items with ` &&
`Disappear priority overflow but they are not displayed in the overflow area.`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->ele( `OverflowToolbar`
)->a( n = `id` v = `otb4`
)->a( n = `width` v = width
)->tag( `Label`
)->a( n = `text` v = `Buttons:`
)->tag( `Label`
)->tag( `ToolbarSpacer`
)->ele( `Button`
)->a( n = `text` v = `Always 1`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `AlwaysOverflow`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Always 2`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `AlwaysOverflow`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Never`
)->a( n = `type` v = `Emphasized`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `NeverOverflow`
)->end(
)->end(
)->tag( `Button`
)->a( n = `text` v = `Default`
)->a( n = `type` v = `Transparent`
)->ele( `Button`
)->a( n = `text` v = `Low 1`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `Low`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `High 1`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `High`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Disappear`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `Disappear`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `High 2`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `High`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Low 2`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `Low`
)->end(
)->end(
)->end(
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `Toolbar items can overflow together even if they are on different positions. This is possible using the group property of the OverflowToolbarLayoutData element. By default the group value is 0, which means that ` &&
`the element does not belong to any group. When two or more elements have the same group value, this means that they belong to the same group. Elements that belong to a group are not allowed to have AlwaysOverflow ` &&
`or NeverOverflow priority.`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->ele( `OverflowToolbar`
)->a( n = `id` v = `otb5`
)->a( n = `width` v = width
)->tag( `Label`
)->a( n = `text` v = `Buttons:`
)->tag( `Label`
)->tag( `ToolbarSpacer`
)->ele( `Button`
)->a( n = `text` v = `Always 1`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `AlwaysOverflow`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Always 2`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `AlwaysOverflow`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Never`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `NeverOverflow`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Group 1`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `High`
)->a( n = `group` v = `1`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Group 1`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `High`
)->a( n = `group` v = `1`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Disappear`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `Disappear`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Group 2`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `Low`
)->a( n = `group` v = `2`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Group 2`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `Low`
)->a( n = `group` v = `2`
)->end(
)->end(
)->end(
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `Toolbar separators are shown as horizontal lines in the overflow area. If the separator happens to be the first or the last element in the overflow area, it won't be displayed. It is recommended to use the ` &&
`separator within group, so it won't be left behind in an inappropriate positions.`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->ele( `OverflowToolbar`
)->a( n = `id` v = `otb6`
)->a( n = `width` v = width
)->tag( `Label`
)->a( n = `text` v = `Buttons within separated groups:`
)->tag( `Label`
)->tag( `ToolbarSpacer`
)->ele( `Button`
)->a( n = `text` v = `Never`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `priority` v = `NeverOverflow`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Group 1`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `group` v = `1`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Group 1`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `group` v = `1`
)->end(
)->end(
)->ele( `ToolbarSeparator`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `group` v = `2`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Group 2`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `group` v = `2`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Group 2`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `group` v = `2`
)->end(
)->end(
)->end(
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `Segmented buttons are shown as Selects when in the overflow area.`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->ele( `OverflowToolbar`
)->a( n = `id` v = `otb7`
)->a( n = `width` v = width
)->tag( `ToolbarSpacer`
)->ele( `Select`
)->ele( `items`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `1`
)->a( n = `text` v = `Option 1`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `2`
)->a( n = `text` v = `Option 2`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `3`
)->a( n = `text` v = `Option 3`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `4`
)->a( n = `text` v = `Option 4`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `5`
)->a( n = `text` v = `Option 5`
)->end(
)->end(
)->tag( `Button`
)->a( n = `text` v = `Button 1`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Button 2`
)->a( n = `type` v = `Transparent`
)->tag( `ToggleButton`
)->a( n = `text` v = `Toggle Button`
)->a( n = `type` v = `Transparent`
)->tag( `Button`
)->a( n = `text` v = `Button 3`
)->a( n = `type` v = `Transparent`
)->ele( `SegmentedButton`
)->a( n = `tooltip` v = `Segmented Button`
)->ele( `items`
)->tag( `SegmentedButtonItem`
)->a( n = `text` v = `Segmented`
)->tag( `SegmentedButtonItem`
)->a( n = `text` v = `Button`
)->end(
)->end(
)->tag( `Button`
)->a( n = `text` v = `Button 4`
)->a( n = `type` v = `Transparent`
)->end(
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `Toolbar items with shrinkable LayoutData and minWidth`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->ele( `OverflowToolbar`
)->a( n = `id` v = `otb8`
)->a( n = `width` v = width
)->tag( `Label`
)->a( n = `text` v = `Buttons:`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `shrinkable` v = `true`
)->a( n = `minWidth` v = `100px`
)->end(
)->tag( `Label`
)->ele( `Button`
)->a( n = `text` v = `Min width 50px`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `shrinkable` v = `true`
)->a( n = `minWidth` v = `50px`
)->end(
)->end(
)->ele( `Button`
)->a( n = `text` v = `Min width 100px`
)->a( n = `type` v = `Transparent`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `shrinkable` v = `true`
)->a( n = `minWidth` v = `100px`
)->end(
)->end(
)->tag( `ToolbarSpacer`
)->ele( `Select`
)->ele( `items`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `1`
)->a( n = `text` v = `Option 1`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `2`
)->a( n = `text` v = `Option 2`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `3`
)->a( n = `text` v = `Option 3`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `4`
)->a( n = `text` v = `Option 4`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `5`
)->a( n = `text` v = `Option 5`
)->end(
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `shrinkable` v = `true`
)->a( n = `minWidth` v = `150px`
)->end(
)->end(
)->ele( `Input`
)->a( n = `width` v = `10%`
)->a( n = `placeholder` v = `Input`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `shrinkable` v = `true`
)->a( n = `minWidth` v = `50px`
)->end(
)->end(
)->ele( `SearchField`
)->a( n = `width` v = `10%`
)->a( n = `placeholder` v = `Search`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `shrinkable` v = `true`
)->a( n = `minWidth` v = `100px`
)->end(
)->end(
)->tag( `ToolbarSpacer`
)->ele( `CheckBox`
)->a( n = `text` v = `I'm a CheckBox!`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `shrinkable` v = `true`
)->a( n = `minWidth` v = `30px`
)->end(
)->end(
)->ele( `RadioButton`
)->a( n = `text` v = `I'm a radio button!`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `shrinkable` v = `true`
)->a( n = `minWidth` v = `100px`
)->end(
)->end(
)->end(
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `Overflow Toolbar with grouped elements: Label with Select and Label with Input. Grouped elements move inside Overflow Toolbar in pairs.`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->ele( `OverflowToolbar`
)->a( n = `id` v = `otb9`
)->a( n = `width` v = width
)->tag( `Label`
)->a( n = `text` v = `Grouping:`
)->tag( `ToolbarSpacer`
)->ele( `Label`
)->a( n = `text` v = `Select:`
)->a( n = `labelFor` v = `labeledSelectGroup1`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `group` v = `1`
)->end(
)->end(
)->ele( `Select`
)->a( n = `width` v = `20%`
)->a( n = `id` v = `labeledSelectGroup1`
)->ele( `items`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `1`
)->a( n = `text` v = `Option 1`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `2`
)->a( n = `text` v = `Option 2`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `3`
)->a( n = `text` v = `Option 3`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `4`
)->a( n = `text` v = `Option 4`
)->tag( n = `Item` ns = `core`
)->a( n = `key` v = `5`
)->a( n = `text` v = `Option 5`
)->end(
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `group` v = `1`
)->a( n = `shrinkable` v = `true`
)->a( n = `minWidth` v = `150px`
)->end(
)->end(
)->ele( `Label`
)->a( n = `text` v = `Input:`
)->a( n = `labelFor` v = `labeledInputGroup2`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `group` v = `2`
)->end(
)->end(
)->ele( `Input`
)->a( n = `width` v = `20%`
)->a( n = `placeholder` v = `Input`
)->a( n = `id` v = `labeledInputGroup2`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `shrinkable` v = `true`
)->a( n = `group` v = `2`
)->a( n = `minWidth` v = `150px`
)->end(
)->end(
)->end(
)->tag( `MessageStrip`
)->a( n = `class` v = `sapUiTinyMargin`
)->a( n = `text` v = `Generic Tag controls in Overflow Toolbar`
)->a( n = `type` v = `Information`
)->a( n = `showIcon` v = `true`
)->ele( `OverflowToolbar`
)->a( n = `id` v = `otb10`
)->a( n = `width` v = width
)->tag( `Label`
)->a( n = `text` v = `Multiple Generic Tag instances:`
)->tag( `ToolbarSpacer`
)->ele( `GenericTag`
)->a( n = `text` v = `Project Cost`
)->a( n = `design` v = `StatusIconHidden`
)->a( n = `status` v = `Error`
)->tag( `ObjectNumber`
)->a( n = `state` v = `Error`
)->a( n = `emphasized` v = `false`
)->a( n = `number` v = `3.5M`
)->a( n = `unit` v = `EUR`
)->end(
)->tag( `GenericTag`
)->a( n = `text` v = `Shortage Expected`
)->a( n = `status` v = `Warning`
)->ele( `GenericTag`
)->a( n = `text` v = `Project Cost`
)->a( n = `design` v = `StatusIconHidden`
)->a( n = `status` v = `Success`
)->tag( `ObjectNumber`
)->a( n = `state` v = `Success`
)->a( n = `emphasized` v = `false`
)->a( n = `number` v = `96`
)->a( n = `unit` v = `%`
)->ele( `layoutData`
)->tag( `OverflowToolbarLayoutData`
)->a( n = `shrinkable` v = `true`
)->a( n = `group` v = `2`
)->a( n = `minWidth` v = `70px`
)->end(
)->end(
)->tag( `GenericTag`
)->a( n = `text` v = `In Stock`
)->a( n = `status` v = `Success`
)->end(
)->tag( `Slider`
)->a( n = `class` v = `sapUiTinyMarginTopBottom`
)->a( n = `value` v = client->_bind( viewport ) ).
client->view_display( view->stringify( ) ).
ENDMETHOD.
METHOD model_init.
viewport = 100.
ENDMETHOD.
ENDCLASS.
More in sap.m
- Notification List Group with lazy loading of the notifications — Notification List Group with lazy loading of the notifications.
- Input - Key and Value — This sample illustrates how the Input works with key and value values, when the data is a…
- List - Loading Indication — You can use enableBusyIndicator property to display loading animation while the data is b…
- Table - CellSelector, CopyProvider — This example demonstrates how the Table data can be copied to the clipboard via CopyProvi…
- List - Deletion — Setting 'Delete' mode on a List means you can trigger the deletion of single items with a…
- List - Growing Upwards — The Upwards Growing
- QuickView with Different Configurations of Avatar — QuickView with fallback icon, initials, display shape and other avatar properties.
- QuickView with Navigation and Data Binding — QuickView using navOrigin parameter when navigating.
- Wizard page mode — Demonstrates the usage of the renderMode property. The Wizard is displayed inside a Dialo…
- Wizard edit mode — Demonstrates the usage of the setCurrentStep association, which controlls the current ste…
- Wizard branching use case — The Wizard could be used in branching mode, where the choice of next step depends on the…
- simple Planning Calendar — PlanningCalendar with single row selection that illustrates the built-in views.
On this page