Spinners are a common way to illustrate to your users that a page or component is currently loading. Sometimes, however, you want to show something behind the spinner other than just a white canvas. That’s where the Backdrop Spinner component comes in.
The Backdrop Spinner component, available free in Backendless Marketplace, lets you customize the backdrop behind the spinner.
You can use a single solid color, or you can add an image to display while the content loads.
You can also change the opacity of the background, allowing you to show the underlying elements beneath the spinner while still obscuring them with a given color.
Installing custom components from Backendless Marketplace is super easy. First, in UI Builder, select the Components tab.
There, you will see a button labeled Install Component. This will take you to the library of components available in the Marketplace.
When you click Install Component, you will open a list of available UI Components to install.
Select the component you want and click Install.
When you return to the User Interface tab, you will see a new section added to your toolkit on the right-hand side called Custom Components.
You can then simply drag the component onto your canvas just like any other UI Component.
How the Backdrop Spinner Component Works
When added to your app, the Backdrop Spinner component can be immediately implemented in your application.
The two default options available out of the box are whether or not to display the backdrop and the type of loader to be displayed. You can also choose not to display the component entirely, just like any other UI Builder component.
To adjust the color and opacity of the backdrop, you will need to create an Extension and specify your preferred color and opacity in the @bl-customComponent-backdrop-background class. You can use RGBA, HEX, or HSL to define your color.
Available Options and What They Mean
Once you have placed your component, when you select it, you will see all of the available options (properties) for the component in the toolkit area. These are the default settings for the component that you can easily adjust.
Each of the available properties are described in the table below. For more information, such as Theme styles and event handlers, visit the Backdrop Spinner GitHub repo.
Backdrop Visibility Logic
Controls the visibility of a component.
[bar,doted circle,doted horizon,doted line circle,doted square,line circle,radar]
Loader Type Logic
Controls the loader type of a component.
When you click on the Logic icon or tab for the component, you will see the modifiable event handlers, just as you would with a standard component. However, the main logic for the component – the logic that makes it work – is hidden to protect it from accidentally being broken.
Additionally, in the Logic area, you will also find all available data binding properties.
That’s it! Ready to try it for yourself?
The Backdrop Spinner component is one of many custom components available now in Backendless Marketplace, completely free!
Start Building Your Perfect UI
Start your free 30-day trial today to get access to the full library of UI components, plus the most powerful Codeless backend available. What are you waiting for?
[vc_row][vc_column][vc_column_text] Notify your users when actions succeed, fail, require further attention, or trigger any other information that the user needs to know by using the Snackbar component. The Snackbar component, available free in Backendless Marketplace, lets you display simple error, success, info, and warning notifications to your UI. These notifications can take multiple preset forms,…
[vc_row][vc_column][vc_column_text] Give your users the power to add and remove items from a fixed list with the Transfer List component in UI Builder. The Transfer List component, available free in Backendless Marketplace, lets the user select any or all items in a pre-set list and move them into a new list. The user can also…
[vc_row][vc_column][vc_column_text] Modals are popups that allow you to collect data from users, alert users to information, and allow users to perform other tasks in your UI without leaving the page they're on. The Simple Modal component, available free in Backendless Marketplace, lets you easily implement modal functionality in your UI Builder application. The component offers…