SAP
C_FIORDEV_21 · Question #177
What is the best approach to show a UI control on a desktop only, and not on a mobile device?
The correct answer is A. Use the standard CSS class sapUiVisibleOnlyOnDesktop. See the full explanation below for the reasoning.
Question
What is the best approach to show a UI control on a desktop only, and not on a mobile device?
Options
- AUse the standard CSS class sapUiVisibleOnlyOnDesktop.
- BUse the Device API to check the environment and call setVisible on the UI control.
- CUse the UI control from sap.ui.commons. These UI controls can handle this automatically.
How the community answered
(44 responses)- A73% (32)
- B7% (3)
- C20% (9)
Community Discussion
No community discussion yet for this question.