0

I want to change calendar time period with some user input field. eg.: in week calendar, I want to show only business day (8AM - 5PM) not (0AM - 12PM)

1 Answer 1

0

For that, you must update businessHours of fullcalendar instance

fullcalendar has setOption() method for option update.

Odoo instantiate fullcalendar in setup() method of CalendarCommonRender component.

Inherit that component and after completily mounted call this.fc.setOption('option_name','option_value) where you need to update fullcalendar option

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.