Im trying to hide the calendar button if the page width is smaller than X pixels. There seems to be an incorrect syntax issue but I cant find out what I am doing wrong. Here is the code;
'calendars' : {
label : Dictionary.Calendar.AddCalendars,
icon : 'fa-calendar',
showText : false,
css : (($('.ak-page').width() < 500px ) ? 'col-xs-hide' : ''),
there are more properties below css, Im not going to include them here because I know the problem is at the line where I define 'css' property.
Aucun commentaire:
Enregistrer un commentaire