Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ganlanyuan committed Feb 15, 2018
1 parent 6b64ddf commit 11f1f06
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ The slider returns a slider object with some properties and methods once it's in
play: play(),
pause: pause(),
isOn: isOn, // Boolean
rebuild: rebuild(),
destroy: destroy()
}
```
Expand Down Expand Up @@ -293,6 +294,13 @@ Destroy the slider.
slider.destroy();
```

#### rebuild
Rebuild the slider after destroy.
```javascript
slider = slider.rebuild();
// this method returns a new slider Object with the same options with the original slider
```

## Custom Events
Available events include: `indexChanged`, `transitionStart`, `transitionEnd`, `touchStart`, `touchMove` and `touchEnd`.
```javascript
Expand Down

0 comments on commit 11f1f06

Please sign in to comment.