All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.kendo.ui.scheduler.views.MonthView Maven / Gradle / Ivy

There is a newer version: 10.3.0
Show newest version
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