
org.wicketstuff.kendo.ui.scheduler.views.MonthView Maven / Gradle / Ivy
package org.wicketstuff.kendo.ui.scheduler.views;
/**
* Defines the 'month' scheduler's view
*
* @author Patrick Davids - Patrick1701
*
*/
public class MonthView extends SchedulerView
{
private static final long serialVersionUID = 1L;
/**
* Gets a new instance of {@code MonthView}
*
* @return a new {@code MonthView}
*/
public static MonthView newInstance()
{
return new MonthView();
}
/**
* Constructor
*/
private MonthView()
{
super(SchedulerViewType.month);
}
/**
* Sets the template pattern used to render the day slots in month view.
*
* @param pattern the date pattern
* @return {@code this}, for chaining
*/
public SchedulerView setDayTemplatePattern(String pattern)
{
this.set("dayTemplate", String.format("kendo.template(\"#=kendo.toString(date, '%s')#\")", pattern));
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy