Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
simeydotme committed Nov 7, 2015
1 parent 7c7bd28 commit 7c6ce0b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ _Below methods are chainable, I've shown them separate for clarity_
####Default usage:

```html
<!-- this widget needs an empty div tag. Note the class used on this div and on the jquery selectors below need to be the same... -->
<!-- this widget needs an empty div tag.
Note the class used on this div and on the jquery
selectors below need to be the same... -->
<div class="element"></div>
```

Expand All @@ -52,8 +54,13 @@ $('.element').slider().slider('pips').slider('float');
####Advanced usage with options:
```javascript

// First of all attach a slider to an element. If you want to customize the range of values, you do it in the initialization.
$('.element').slider({min: 20, max: 65});
// First of all attach a slider to an element.
// If you want to set values, you do it in the initialization.
$('.element').slider({
min: 20,
max: 65,
values: [30, 40, 50]
});

// Then you can give it pips and labels!
$('.element').slider('pips', {
Expand Down

0 comments on commit 7c6ce0b

Please sign in to comment.