Page 1 of 1

special date

Posted: Fri Apr 17, 2015 2:14 am
by She

Hi,

How can i change the color of grid to the specific date on datepicker if there's special date,
For example:
January 1 = New Year.

Thank you in advance


special date

Posted: Fri Apr 17, 2015 5:49 am
by She

Im following this link:

http://www.jquerybyexample.net/2012/0...

and edit the code to:

var date = new Date();
var SelectedDates={};
var Highlight = SelectedDates[date];
SelectedDates[new Date('04/05/2012')] = new Date('04/05/2012');
SelectedDates[new Date('05/04/2012')] = new Date('05/04/2012');
SelectedDates[new Date('06/06/2012')] = new Date('06/06/2012');
//mobDatepicker is the name of my datepicker
Apperyio("mobDatePicker").datepicker({ //always saying that this is undefined.
beforeShowDay: function(date)
{
var Highlight = SelectedDates[date];
if (Highlight) {
return [true, "Highlighted", Highlight];
}
else {
return [true, '', ''];
}
}
});

Thank you.


special date

Posted: Fri Apr 17, 2015 4:45 pm
by Serhii Kulibaba

Hi,

You should add jQuery-UI.js before use code above.


special date

Posted: Tue Apr 21, 2015 12:03 am
by She

Hi Sergiy,

I already add the js to the resources, and still undefined :

Image


special date

Posted: Tue Apr 21, 2015 6:54 am
by Illya Stepanov

Hi She -

Try adding this resources this way -- https://devcenter.appery.io/documenta...


special date

Posted: Wed Apr 22, 2015 3:04 am
by She

what is this error?
Image


special date

Posted: Wed Apr 22, 2015 7:56 pm
by Serhii Kulibaba

Please unroll error. Somewhere in the sdk.js you use "shift" for undefined variable.