Skip to content

MinimaHQ/bs-nprogress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bs-nprogress

BuckleScript bindings to nprogress.

Installation

yarn add bs-nprogress nprogress
npm install --save bs-nprogress nprogress

Usage

Pretty much consistent with original JS API.

// All arguments are optional
NProgress.configure(
  ~minimum=0.2,
  ~template="<div />"
  ~easing="ease",
  ~speed=200,
  ~trickle=true,
  ~trickleSpeed=300,
  ~showSpinner=false,
  ~parent="#container",
  () // NB: Don't forget to apply unit!
);

NProgress.start();

NProgress.complete(); // original: NProgress.done();

NProgress.forceComplete(); // original: NProgress.done(true);

NProgress.isStarted();

NProgress.set(0.2);

NProgress.inc();

NProgress.remove();

NProgress.status;

About

BuckleScript bindings to nprogress

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages