I am trying to use abp.ui.setBusy as per below but cannot get the spinner to work:
abp.ui.setBusy(
$('#MyLoginForm'),
abp.ajax({ ... })
);
In the documentation I read the following: "The UI Busy API is implemented using spin.js. To make it work, you must include its JavaScript file, then include abp.spin.js to your page (See this JavaScript file for the simple implementation and defaults)."
Unfortunately there is no link provided to the JavaScript example file. Can anyone help please?
3 Answer(s)
-
0
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.Web.Resources/Abp/Framework/scripts/libs/abp.spin.js
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thanks. I'm unclear how I would incorporate this with a call of the following form (which automatically unblocks the page when the promise is completed):
abp.ui.setBusy( $('#MyLoginForm'), abp.ajax({ ... })
);Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
hi @aquasource Many times you can refer to Zero's code.
https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/wwwroot/view-resources/Views/Account/Login.js#L33hi
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)