Skip to content

bbcreation/datetimepicker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Date/Time Picker v4.17.47

Fork to use with Tailwind CSS / Turbolinks / Laravel LiveWire

Use with Turbolinks and Laravel LiveWire:

Script:

<script type="text/javascript">
    function Datepicker() {
        $('#datetimepicker').datetimepicker({
            format: 'YYYY-MM-DD H:mm'
        }).on("dp.change", function (e) {
            @this.set('pay_date', e.date);
        });
    };
    window.addEventListener('turbolinks:load', Datepicker);
</script>

HTML:

<label>
    <div wire:ignore>
        <input  type="text" class="form-input block w-full text-xs" placeholder="{{ __('Pay Date') }}"  id="datetimepicker">
    </div>
</label>

INFO:

Enter the code between and add height so that nothing obstructs:

<div style="position: relative; height: 90vh;></div>

About

Fork Date/time picker widget

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 100.0%