Icon Tab Bar - Icons Only
In this example, the Icon Tab Bar tabs display icons only.
- Class
z2ui5_cl_smpc_app_380- Repository
- abap2UI5/samples-controls
- Ports
sap.m.sample.IconTabBarMulti- UI5 libraries
- sap.m, sap.ui.core
- Lowest UI5 release
- 1.71
- In the browser
- Runs in the playground
- Controls it builds
- sap.m.IconTabBar, sap.m.IconTabFilter, sap.m.Text, sap.ui.core.mvc.View
The class
" @keywords icontabbar icon tab bar sap.m icontabbarmulti icontabfilter text
" @summary In this example, the Icon Tab Bar tabs display icons only.
" @origin sap.m.sample.IconTabBarMulti - https://sdk.openui5.org/entity/sap.m.IconTabBar/sample/sap.m.sample.IconTabBarMulti (status: reviewed - read against the original, not run)
CLASS z2ui5_cl_smpc_app_380 DEFINITION PUBLIC.
PUBLIC SECTION.
INTERFACES z2ui5_if_app.
PROTECTED SECTION.
DATA client TYPE REF TO z2ui5_if_client.
METHODS view_display.
PRIVATE SECTION.
ENDCLASS.
CLASS z2ui5_cl_smpc_app_380 IMPLEMENTATION.
METHOD z2ui5_if_app~main.
me->client = client.
IF client->check_on_navigated( ).
view_display( ).
ENDIF.
ENDMETHOD.
METHOD view_display.
DATA(view) = z2ui5_cl_ui5_view_builder=>factory( ).
view->ele( n = `View` ns = `mvc`
)->a( n = `xmlns:mvc` v = `sap.ui.core.mvc`
)->a( n = `xmlns` v = `sap.m`
)->ele( `IconTabBar`
)->a( n = `id` v = `idIconTabBarMulti`
" device> exposes raw sap.ui.Device, so !phone expresses the
" demo kit helper model's isNoPhone (app 030 precedent)
)->a( n = `expanded` v = `{= !${device>/system/phone} }`
)->a( n = `class` v = `sapUiResponsiveContentPadding`
)->ele( `items`
)->ele( `IconTabFilter`
)->a( n = `icon` v = `sap-icon://hint`
)->a( n = `key` v = `info`
)->tag( `Text`
)->a( n = `text` v = `Info content goes here ...`
)->end(
)->ele( `IconTabFilter`
)->a( n = `icon` v = `sap-icon://attachment`
)->a( n = `key` v = `attachments`
)->a( n = `count` v = `3`
)->tag( `Text`
)->a( n = `text` v = `Attachments go here ...`
)->end(
)->ele( `IconTabFilter`
)->a( n = `icon` v = `sap-icon://notes`
)->a( n = `key` v = `notes`
)->a( n = `count` v = `12`
)->tag( `Text`
)->a( n = `text` v = `Notes go here ...`
)->end(
)->ele( `IconTabFilter`
)->a( n = `icon` v = `sap-icon://group`
)->a( n = `key` v = `people`
)->tag( `Text`
)->a( n = `text` v = `People content goes here ...` ).
client->view_display( view->stringify( ) ).
ENDMETHOD.
ENDCLASS.