$(function(){ | |
var mainController = { | |
__name : 'h5.ui.container.MainController', | |
calendarController: h5.ui.components.Calendar, | |
__meta : { | |
calendarController: { | |
rootElement: '#container' | |
}, | |
}, | |
__init: function(){ | |
this.$find(".select:first").attr("checked", true); | |
}, | |
'#btnSetTextDate click': function(){ | |
var dates = this.calendarController.getSelectedDate(); | |
var data = this.$find('#txtContentDate').val(); | |
for (var i=0; i<dates.length; i++) { | |
this.calendarController.setTooltip(dates[i], data); | |
} | |
} | |
}; | |
h5.core.controller('body', mainController); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment