Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jantinnerezo authored Oct 11, 2021
1 parent 15a8a2a commit 7ab1550
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,6 @@ The `$values` property is the model for the range slider values.
```html
<x-range-slider :options="$options" wire:model="values" />
```


#### Debouncing

If you want to avoid too many network requests, `.debounce` modifier works out-of-the-box.

```html
<x-range-slider :options="$options" wire:model.debounce.500ms="values" />
```


#### Deferred

Expand All @@ -98,9 +88,9 @@ In cases where you don't need range slider to update live, you can use `.defer`
<x-range-slider :options="$options" wire:model.defer="values" />
```

#### Targetting handle values
#### Multiple properties

Targetting a property for each handle also works out-of-the-box, simply add the properties to `wire:models` comma separated.
Targetting a property for each handle also works out-of-the-box, simply add the properties comma separated.

```php

Expand Down Expand Up @@ -130,5 +120,5 @@ public $range = [
```

``` html
<x-range-slider :options="$options" wire:models="range.min,range.max" />
<x-range-slider :options="$options" wire:model="range.min,range.max" />
```

0 comments on commit 7ab1550

Please sign in to comment.