PHP code example of sadam / livewire-range-slider

1. Go to this page and download the library: Download sadam/livewire-range-slider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sadam / livewire-range-slider example snippets


class PriceFilter extends Component
{
    public $price = 500;
}

class PriceFilter extends Component
{
    public $priceRange = [200, 800];

    // You can also use 3+ handles
    // public $quartiles = [100, 300, 600, 900];
}

return [
    'theme' => 'indigo',
    'size' => 'medium',
    'variant' => 'rounded',
    'direction' => 'ltr',
    'behaviour' => 'tap',
    'pips' => false,
    'step' => 1,
    'min' => 1,
    'max' => 100,
    'tooltips' => true,
];

public $values = [50]; // Had to be an array

public $price = 50; // Can now be a single value

public $values = [30, 70];

public $priceRange = [30, 70];

return [
    'theme' => 'indigo',
    'size' => 'medium',
    'variant' => 'rounded',
    'tooltips' => true,
    'pips' => false,
    // ... more options
];

// Component
public $values = [200, 800];

// Component
public $priceRange = [200, 800];