Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

According to SAP UI5 Experience site, SAPUI5 provides a “content density” factor, which allows the size of the controls to be adjusted depending on the interaction style.

  1. The cozy factor displays controls with dimensions large enough to enable fingertip interaction. This factor is ideal for devices operated by touch.

Image Modified

  1. The compact factor reduces the dimensions of the controls, allowing more information to be displayed on the UI. This factor is ideal for devices operated by mouse and keyboard.

Image Modified

This can be implemented in IQX FAB as following:

For Cozy Factor:


Code Block
languagejs
titleCozy Factor
thisFormsController.getView().addStyleClass("sapUiSizeCozy");


For Compact Factor:


Code Block
languagejs
titleCompact Factor
thisFormsController.getView().addStyleClass("sapUiSizeCompact");

...