JavaScript/jQuery LoadPanel - Customize the Loading Indicator
To use a custom load indicator image, set indicatorOptions.src to the image URL.
index.js
- $(function() {
- $("#loadPanelContainer").dxLoadPanel({
- hideOnOutsideClick: true,
- indicatorOptions: {
- src: "https://js.devexpress.com/Content/data/loadingIcons/rolling.svg"
- }
- });
- });
To hide a load indicator, disable the showIndicator property.
index.js
- $(function() {
- $("#loadPanelContainer").dxLoadPanel({
- hideOnOutsideClick: true,
- showIndicator: false
- });
- });