We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05c0f84 commit 5f079a1Copy full SHA for 5f079a1
d/03/index.html
@@ -126,6 +126,7 @@
126
that.setDom();
127
that.hideHandle();
128
that.addNextMonth();
129
+ that.addPrevMonth();
130
}
131
function createCalendar(){
132
div.innerHTML = that.tpl[0];
@@ -251,6 +252,16 @@
251
252
},
253
removeNextMonth: function(){
254
dog.off(this.next, 'click', this.nextMonthHandle.bind(this));
255
+ },
256
+ addPrevMonth : function(){
257
+ dog.on(this.prev, 'click', this.prevMonthHandle.bind(this));
258
259
+ prevMonthHandle : function(e){
260
+ var date = this.time.date
261
+
262
+ date.setMonth(--this.month)
263
+ this.fill(this.getFullTime(date))
264
+ this.fillYear()
265
266
267
var defaults = {
0 commit comments