blackbluegl / calendar-component

initial Vaadin8 calendar-component
Apache License 2.0
11 stars 21 forks source link

Set the Calender with MonthMode at the Beginning #21

Closed Amutheezan closed 5 years ago

Amutheezan commented 6 years ago

How to keep the Monthly Mode Active in Beginning and When Click A Date, which trigger DateClickEvent and Not to Go Into Specific Date

Vilkaz commented 6 years ago

To set Monthly mode you need something like this

calendar.withMonth(ZonedDateTime.now().getMonth());

just do that in initialisation.

bladem commented 6 years ago

only needs calendar.withMonth(ZonedDateTime.now()); It's gets the moth of actual day.

blackbluegl commented 5 years ago

calendar.withMonth(ZonedDateTime.now());