Insites Docs Web Components V2GeneralLoader

Loader

Last updated on August 02, 2024.

Element: <ins-loader>

Defines a simplified preloader.

Complete Example

Code Snippet

<ins-loader
  state-title="Success!"
  state-message="Your order has been placed and is being processed."
  state-icon="success"
  tooltip="This is a sample tooltip content. It also support html content.">
</ins-loader>
Direct Set Data

Code Snippet

<ins-loader 
  id="directSetDataLoader">
</ins-loader>

<script>
  var loader = document.getElementById('directSetDataLoader');
  loader.addEventListener('didLoad', function(e){
    loader.stateTitle = 'Error!';
    loader.stateMessage = 'A problem has occurred while submitting your data.';
    loader.stateIcon = 'error';
  });
</script>
Static Data Source

Code Snippet

<ins-loader
  state-title="Success!"
  state-message="Your message has been sent successfully."
  state-icon="success">
</ins-loader>
Processing - default

Code Snippet

<ins-loader
  state-title="Processing"
  state-message="Please wait, we're processing your data."
  state-icon="processing">
</ins-loader>
Processing - animated SVG

Code Snippet

<ins-loader
  use-image=false
  state-title="Processing"
  state-message="Please wait, we're processing your data."
  state-icon="processing">
</ins-loader>
Warning

Code Snippet

<ins-loader
  state-title="Warning!"
  state-message="There was a problem with your network connection."
  state-icon="warning">
</ins-loader>
Help

Code Snippet

<ins-loader
  state-title="Need help?"
  state-message="Please contact our online support team."
  state-icon="help">
</ins-loader>
Error

Code Snippet

<ins-loader
  state-title="Error!"
  state-message="A problem has occurred while submitting your data."
  state-icon="error">
</ins-loader>
Success

Code Snippet

<ins-loader
  state-title="Success!"
  state-message="You message has been sent successfully."
  state-icon="success">
</ins-loader>
Downloading

Code Snippet

<ins-loader
  state-title="Downloading"
  state-message="Your file/s are being downloaded."
  state-icon="downloading">
</ins-loader>
Uploading

Code Snippet

<ins-loader
  state-title="Uploading"
  state-message="Your file/s are being uploaded."
  state-icon="uploading">
</ins-loader>

 

Attributes

 

FIELD ATTRIBUTE TYPE DEFAULT OPTIONS DESCRIPTION
state-title string "" any Defines title of loader
state-message string "" any Defines message of loader
state-icon string "" processing, warning, Help, Error, Success, downloading, uploading Defines icon of loader
icon-color string "" any Defines icon color of loader
use-image boolean true true, false Toggle use image for 'processing' state
image-source string loading-loop.gif any Defines image path to used for 'processing' state loader

 

Have a suggestion for this page?

Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.