Skip to content

Commit 294b7de

Browse files
committed
add doc for is-on api in README
1 parent 87a6b74 commit 294b7de

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, on then resolve after delay(ms). )
3838
* off(delay): toggle loader off. (if delay is provided, resolve after delay(ms), then off. )
39+
* is-on: return true if loader is running, else false.
3940
* 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 )
4041
* on(event, cb): listen to events, including: ( TBD? conflict with on(delay) )
4142
- toggle.on

0 commit comments

Comments
 (0)