React LoadPanel - Customize the Loading Indicator
To use a custom load indicator image, set indicatorOptions.src to the image URL.
App.tsx
- import React from 'react';
- import LoadPanel, { type LoadPanelTypes } from 'devextreme-react/load-panel';
- const indicatorOptions: LoadPanelTypes.LoadPanelIndicatorProperties = {
- src: "https://js.devexpress.com/Content/data/loadingIcons/rolling.svg"
- };
- function App() {
- return (
- <LoadPanel
- hideOnOutsideClick={true}
- indicatorOptions={indicatorOptions}
- />
- );
- }
- export default App;
To hide a load indicator, disable the showIndicator property.
App.tsx
- import React from 'react';
- import { LoadPanel } from 'devextreme-react/load-panel';
- function App() {
- return (
- <LoadPanel
- hideOnOutsideClick={true}
- showIndicator={false}
- />
- );
- }
- export default App;