She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

special date

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

special date

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

special date

Hi,

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

special date

Hi Sergiy,

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

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

special date

Hi She -

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

special date

what is this error?
Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

special date

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

Return to “Issues”