Datepicker

Basic usage

Here's a basic example:
<input type="text" id="dtp1">
<script>
    $(function () {
        aweui.datepicker({
            id: 'dtp1'
        });
    });
</script>

Api

Datepicker api can be accessed by calling:
var api = $('#dtpid').data('api');
Api methods:
getDate
get value as Date type
setDate(val:Date)
set Date value

Properties

id
input id
inline
render the datepicker inline (default false)
minDate
min datepicker date
maxDate
max datepicker date
numberOfMonths
number of months to render in the popup
changeMonth
show changeMonth dropdown (default true)
changeYear
show changeYear dropdown (default true)
dayf
function used to alter the options for a day element before render
enb
enabled
clearButton
clear button
dateFormat
date format
yearRange
year range for the changeYear dropdown (example "2012:2020")
defaultDate
default date to show in popup when nothing selected (default today)



Comments
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our cookie policy and privacy policy .