Vue LoadPanel - Customize the Loading Indicator

To use a custom load indicator image, set indicatorOptions.src to the image URL.

App.vue
  • <template>
  • <DxLoadPanel
  • :hide-on-outside-click="true"
  • :indicator-options="indicatorOptions"
  • />
  • </template>
  •  
  • <script setup lang="ts">
  • import DxLoadPanel from 'devextreme-vue/load-panel';
  • import { type DxLoadPanelTypes } from "devextreme-vue/load-panel";
  •  
  • const indicatorOptions: DxLoadPanelTypes.LoadPanelIndicatorProperties = {
  • src: "https://js.devexpress.com/Content/data/loadingIcons/rolling.svg"
  • };
  • </script>

To hide a load indicator, disable the showIndicator property.

App.vue
  • <template>
  • <DxLoadPanel
  • :hide-on-outside-click="true"
  • :show-indicator="false"
  • />
  • </template>
  •  
  • <script setup lang="ts">
  • import DxLoadPanel from 'devextreme-vue/load-panel';
  • </script>
See Also