Skip to Content
1

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

Jul 16, 2017 at 11:45 AM

63

avatar image
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.

hah.png (6.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sharath M G Jul 17, 2017 at 07:45 AM
1

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

Show 6 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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.

snippet.gif (9.5 kB)
0

use the method setSize(2rem);.

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

Regards,

Sharath

1
Former Member

Hi again,

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

0
Former Member

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.

0

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

0

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

0