Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Is there a way to re-render the calendar? #235

Open
jbajou opened this issue May 3, 2021 · 2 comments
Open

Is there a way to re-render the calendar? #235

jbajou opened this issue May 3, 2021 · 2 comments

Comments

@jbajou
Copy link

jbajou commented May 3, 2021

Hello,

I'm using Litepicker with Laravel-livewire. Long story short, I use lockDaysFilter to understand which days are bookable.
I have an async call modifying the data I'm checking in lockDaysFilter. It works perfectly if I click somewhere in the page after triggering the change.

I'm looking for a way to trigger a re-render programmatically so the calendar updated availabilities.

Thanks for your help

@jbajou
Copy link
Author

jbajou commented May 13, 2021

I'm still struggling to find a solution to this issue. Anyone has an idea ? Thanks

@Suhailattatras
Copy link

use clearSelection() method of lite-picker this way. It worked for me.

this.litepickerCalendar.clearSelection();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants