Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dkf-spinner

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dkf-spinner

Advanced loading indicator component for vue 2+

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

DKF-Spinner

This is an advanced loading component for Vue 2+. It allows you to display a loading spinner that is always visible for a minimal amount of time.

Demo: https://dkfbasel.github.io/dkf-spinner/

The idea behind this is, that the user will always get a feedback that data is loaded from the server. The loading indicator will stay visible, if the data fetching is faster than the minimal time set in the configuration. If the data fetching takes longer, the indicator will be hidden immediately after data fetching (respectively when you update the respective property).

Example usage:

  • set the variable loading to true before you start loading the data to start the loading indicator
  • set the variable loading to false as soon as the data arrives and is ready to be rendered
  • wait for the @loaded event to be fired to toggle the visibility of your data.
<dkf-spinner :loading="loading"	@loaded="toggleDataVisibility"></dkf-spinner>

A complete example can be found on the demo page.

Please let us know, if you require any assistance or have ideas for improvements.

Keywords

FAQs

Package last updated on 05 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc