Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Laravel 10 #14

Open
bfmvsa opened this issue Feb 16, 2023 · 4 comments
Open

Support for Laravel 10 #14

bfmvsa opened this issue Feb 16, 2023 · 4 comments

Comments

@bfmvsa
Copy link

bfmvsa commented Feb 16, 2023

Hey @jantinnerezo please add this change. Thank you!

@albertobenavides
Copy link

I vote for this too :)

Thank you in advance.

@albertobenavides
Copy link

albertobenavides commented Feb 22, 2023

Hey @jantinnerezo please add this change. Thank you!

I am doing this, in the meantime:

@push('styles')
  <link href="/css/nouislider.min.css" rel="stylesheet">
@endpush

@push('scripts')
<script src="/js/nouislider.min.js"></script>
<script src="/js/wNumb.min.js"></script>
<script>
  var range = document.getElementById('range');
  var slider = noUiSlider.create(range, {
    range: {
      'min': 0,
      'max': {{ $v_max }}
    },
    step: 500,
    // Handles start at ...
    start: [0, {{ $v_max }}],

    // Display colored bars between handles
    connect: true,

    // Move handle on tap, bars are draggable
    behaviour: 'tap-drag',
    tooltips: true,
    format: wNumb({
      decimals: 0
    }),

    // Show a scale with the slider
    pips: {
      mode: 'steps',
      stepped: true,
      density: 10
    }
  });
  range.noUiSlider.on('change', function (v) {
    @this.set('range_value', v);
  });
</script>
@endpush
...

<div wire:ignore>
  <div id="range" wire:model="range_value.min,range_value.max"></div>
</div>

I have a $v_max$ and a range_value in a livewire component.

@bfmvsa
Copy link
Author

bfmvsa commented Feb 23, 2023

Hey @jantinnerezo you already have done it for livewire-alert, please update this repo as well. Thanks.

@SturmB
Copy link

SturmB commented Apr 17, 2023

I request Laravel 10 support, as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants