skyline / component-date-picker
Installs: 7
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: >=7.2
- skyline/component-skyline: ^0.8|^8
Requires (Dev)
- skyline/direct-components: ^0.8|^8
README
The date picker component extends your application by adding a graphical interface for date and time input fields.
Installation
$ composer require skyline/component-date-picker
Usage
<div class="form-group"> <div class="input-group"> <input type="text" class="form-control" id="myPicker"> <div class="input-group-prepend"> <button class="btn btn-outline-primary" type="button" onclick="$('#myPicker').datepicker('open')">...</button> </div> </div> </div> <script type="application/javascript"> $(function() { $("#myPicker").datepicker("init", { autoOpen: false, autoUpdate: true, setDefaultDate: true, showClearBtn: true, mirror: "#result", mirrorFormat: "yyyy-mm-dd" }) } </script>