Hi,
As far as I see, there is no such options. (I would had expected a
'minDate' options, but seems to not be the case...).
The only way I see, is to add a javascript statement which will
display/hide the button. Actually, these are not real buttons (but spans,
so it is harder to disable these than showing/hiding).
@Override
public boolean isViewRenderEnabled()
{
return true;
}
@Override
public void onViewRender(AjaxRequestTarget target, CalendarView
view)
{
super.onViewRender(target, view);
String statement = String.format(var date =
$('%s').fullCalendar('getDate');, JQueryWidget.getSelector(this));
statement += var minDate = new Date(date.getFullYear(),
date.getMonth(), 1, 0, 0, 0, 0);;
statement += if (minDate new Date()) {; //TODO replace
'new Date()' by the wished date
statement += $('.fc-button-prev').css('display',
'none');;
statement += } else { ;
statement += $('.fc-button-prev').css('display',
'inline-block');;
statement += };
target.appendJavaScript(statement);
}
Hope this helps,
Sebastien.
On Tue, Oct 22, 2013 at 11:13 AM, Selom pierre.kou...@uhb.fr wrote:
Hello;
Need your help again .
I 'd like to disable the next buton when moving the calendar one step
forward at my specified date let say 31 december.
I there any *option * to do that ?
Thanks in advance.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/jquery-ui-calendar-Calendar-disable-next-button-tp4661918.html
Sent from the Users forum mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org