Fork of date/time picker component designed to work with Tailwind CSS and Momentjs
bbcreation/datetimepicker is a Laravel package for fork of date/time picker component designed to work with tailwind css and momentjs.
It currently has 0 GitHub stars and 228 downloads on Packagist (latest version 4.17.47).
Install it with composer require bbcreation/datetimepicker.
Discover more Laravel packages by bbcreation
or browse all Laravel packages to compare alternatives.
Last updated
Fork to use with Tailwind CSS / Turbolinks / 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>