pas a date to calendar and it will highlight that date on th


Topic: pas a date to calendar and it will highlight that date on the calendar

Stylezst pro premium asked 3 years ago

hi wanted to highlight the date when i pass the date to calendar. i'm unable to do this. can you please help me how to pass the date and it will automatically go to that date. the calendar is Bootstrap 5 Calendar plugin


Michał Duszak staff answered 3 years ago

Hello,do you mean you would like to navigate Calendar to a specific date upon some event? If so, it's not possible right now - we don't provide such a method. But you can specify a defaultDate option.

Here is the snippet: https://mdbootstrap.com/snippets/standard/m-duszak/3749780

Default date is specifiec via data-attribute in this one.

data-mdb-default-date="01-3-2020"

Stylezst pro premium commented 3 years ago

how to do this using api?


Michał Duszak staff commented 3 years ago

Here is an example of the default date setting: https://mdbootstrap.com/docs/standard/plugins/calendar/#section-default-date


Stylezst pro premium commented 3 years ago

i'd checked it. in example we are passing default date in html. while i wished to pass it through js. how is it possible


Michał Duszak staff commented 3 years ago

I think your question has been answered here https://mdbootstrap.com/support/standard/how-to-pas-default-date-in-mdbootstrap-calendar/


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.2
  • Device: Windows
  • Browser: Chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No