Card Explorer
Card Explorer is the application where you can learn more about integration cards.
Z2UI5_CL_SMPC_APP_149
Controls
sap.ui.integration
UI5 1.71
The facts
- Repository
- abap2UI5/samples-controls
- Class
Z2UI5_CL_SMPC_APP_149- Source file
z2ui5_cl_smpc_app_149.clas.abap↗- Library
- sap.ui.integration
- UI5 entity
sap.ui.integration.widgets.Card- Demo kit sample
sap.ui.integration.sample.CardExplorer- 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: card, sap.ui.integration.widgets, explorer, link, vbox, image
Controls it builds
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_149.clas.abap — 60 lines
Click a number to link to a line — shift-click for a range.
Read it on GitHub ↗
" @keywords card sap.ui.integration.widgets explorer link vbox image
" @summary Card Explorer is the application where you can learn more about integration cards.
CLASS z2ui5_cl_smpc_app_149 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_149 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` v = `sap.m`
)->a( n = `xmlns:mvc` v = `sap.ui.core.mvc`
)->a( n = `xmlns:w` v = `sap.ui.integration.widgets`
)->a( n = `class` v = `sapUiContentPadding`
)->ele( `VBox`
)->tag( `Link`
)->a( n = `text` v = `Visit the Card Explorer`
)->a( n = `href` v = `https://sdk.openui5.org/test-resources/sap/ui/integration/demokit/cardExplorer/index.html`
)->a( n = `emphasized` v = `true`
)->a( n = `class` v = `sapUiSmallMargin`
)->a( n = `target` v = `_blank`
)->tag( `Image`
)->a( n = `src` v = `https://sdk.openui5.org/resources/sap/ui/documentation/sdk/images/tools/CardExplorer.png`
)->a( n = `alt` v = `Card Explorer`
)->a( n = `class` v = `sapUiSmallMargin`
" original onImagePress: URLHelper.redirect(url, true) - 1:1 via the
" urlhelper REDIRECT frontend action (same relative target as the Link)
)->a( n = `press` v = client->follow_up_action( val = client->cs_event-urlhelper
t_arg = VALUE #( ( `REDIRECT` )
( |\{ URL: 'test-resources/sap/ui/integration/demokit/cardExplorer/index.html', NEW_WINDOW: true \}| ) ) ) ).
client->view_display( view->stringify( ) ).
ENDMETHOD.
ENDCLASS.
More in sap.ui.integration
- Home page with cards — Different types of cards types arranged in a sap.f.GridContainer.
- Home page with cards loading — Different types of cards types and their loading placeholder
- Lazy loading of cards on home page — dataMode:'Auto' activates lazy loading behavior of an integration card
On this page