cancel
Showing results for 
Search instead for 
Did you mean: 

change styling of built in method sapui5 - sap.ui.core.BusyIndicator.show(iDelay);

Former Member

I call the built in method sap.ui.core.BusyIndicator.show(iDelay);

I'm wondering if I can change the size of the loading icons that the busy indicator function creates.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Sharathmg
Active Contributor

You have the option of "Small", "Medium" and "Large" for busy indicator.

For specific sizes:

<BusyIndicator size="1.4em" />

Refer to guidelines: https://experience.sap.com/fiori-design-web/busy-indicator/#properties

Former Member
0 Kudos

Thanks for the response. The way I have the application made, there is nothing in the view. The method is just called from the controller once the application is started. The view is completely empty and the showBusyIndicator function is called from controller in the onInit function.

Sharathmg
Active Contributor

use the method setSize(2rem);.

Refer the api: https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.m.BusyIndicator.html#setSize

Regards,

Sharath

Former Member
0 Kudos

Hi again,

unfortunately the syntax setSize(2rem) is not allowed due to the "rem"

Former Member
0 Kudos

setSize(2rem); is the sap.m class.

The function that I am using is in the sap.ui.core. That is why I can not use the method, they are in different classes.

Sharathmg
Active Contributor
0 Kudos

Why don't you move to sap.m instead of using sap.ui.core ?

Sharathmg
Active Contributor
0 Kudos

in sap.ui.core, you do not have an option to manipulate the size of busy indicator.

In my view, your only option should be to use sap.m.BusyIndicator and then use the methods in it to increase size.

Regards,

Sharath