Skip to content

Commit d96bbc2

Browse files
committed
add cancel api in README
1 parent a545152 commit d96bbc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ config includes following options:
3636
Methods:
3737
* on(delay): toggle loader on. return promise. (if delay is provided, wait delay(ms) before on )
3838
* off(delay): toggle loader off. (if delay is provided, wait delay(ms) before off )
39+
* cancel(v): cancel delayed action. force state to `v` if v is defined.
3940
* is-on: return true if loader is running, else false.
4041
* toggle(state,delay): toggle loader based on state(true/false). toggle according to current state if state is omitted. return promise ( delay behavior according to whether it's on or off )
4142
* on(event, cb): listen to events, including: ( TBD? conflict with on(delay) )

0 commit comments

Comments
 (0)