tDatePicker triggers a number of events in certain circumstances. Events have extra data attached to the event object that is passed to any event handlers
<script type="text/javascript"> $(document).ready(function(){ var t_calendar = $('.t_datepicker'); t_calendar.tDatePicker(); t_calendar.on( 'event_name',function() { // do something ... }) }) </script>
Event: Click
Parameter: (event, fn())
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('clickDateCI',function(e, dateCI) { // console.log('clickDateCI do something') }) </script>
Event: Click
Parameter: (event, fn())
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('clickDateCO',function(e, dateCO) { // console.log('clickDateCO do something') }) </script>
Event: Click
Parameter: (event, fn())
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('beforeShowDay',function() { // console.log('beforeShowDay do something') }) </script>
Event: Click
Parameter: (event, fn())
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('afterShowDay',function() { // console.log('afterShowDay do something') }) </script>
Event: toggleClick
Parameter: (event, fn())
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('toggleAfterHideDay',function() { // console.log('toggleAfterHideDay do something') }) </script>
Event: Click
Parameter: (event, fn())
No support only Picker View Demo
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('afterCheckOut',function(e, dataDate){ // console.log(new Date(dataDate[0])) // check-in // console.log(new Date(dataDate[1])) // check-out }) </script>
Event: Click
Parameter: (event, fn())
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('eventClickDay',function(e, dataDate){ // console.log(new Date(dataDate[0])) // check-in // console.log(new Date(dataDate[1])) // check-out }) </script>
Event: Click
Parameter: (event, fn())
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('selectedCI',function(e, slDateCI) { // console.log('selectedCI do something') // console.log(new Date(slDateCI)) }) </script>
Event: Click
Parameter: (event, fn())
No support only Picker View Demo
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('selectedCO',function(e, slDateCO) { // console.log('selectedCO do something') // console.log(new Date(slDateCO)) }) </script>
Event: Click
Parameter: (event, fn())
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('onChangeCI',function(e, changeDateCI) { // console.log'onChangeCI do something') // console.log(new Date(changeDateCI)) }) </script>
Event: Click
Parameter: (event, fn())
No support only Picker View Demo
<script type="text/javascript"> $('.t-datepicker').tDatePicker({ // Options }).on('onChangeCO',function(e, changeDateCO) { // console.log'onChangeCO do something') // console.log(new Date(changeDateCO)) }) </script>