Hello,
I am using the multi-calendar feature. I also am using the
"onHideComplete" property to execute some code.
The problem is that when you use the multi-calendar there doesn't seem
to be a way to execute different code for each calendar.
mutli-calendar setup:
I tried the following, but it doesn't work:
Is there a way to target each different calendar individually using
the "id" of the form input?
I am using the multi-calendar feature. I also am using the
"onHideComplete" property to execute some code.
The problem is that when you use the multi-calendar there doesn't seem
to be a way to execute different code for each calendar.
mutli-calendar setup:
cals = new Calendar( {datum: 'd/m/Y', datum_retour: 'd/m/Y'}, {direction: .5, pad: 1, classes: ['dashboard'], onHideComplete: someFunction } );
var someFunction = function() {
//do something
}
I tried the following, but it doesn't work:
var someFunction = function() {
if(this.getProperty('id') == 'datum') {
//do something
}
if(this.getProperty('id') == 'datum_retour'){
//do something else
}
}
Is there a way to target each different calendar individually using
the "id" of the form input?