Open naluinui opened 9 months ago
Have we got API task for this?
@grindarius yes, #1574
You can use Flowbite datepicker and pass in options:
import DateRangePicker from 'flowbite-datepicker/DateRangePicker'
const beforeShowDay = (date) => {
const day = date.getDate()
return { content: `<span>${day}</span><br><span style="font-size:8px">test</span>` }
}
const dateRangePickerEl = document.getElementById('dateRangePickerId')
new DateRangePicker(datepickerEl, {
// options
beforeShowDay
})
Flowbite date picker is too hard to get working in Vue!
Suggest we switch to https://vue-tailwind-datepicker.com
@naluinui Can you share what you have done or your progress with @RatreeOchn ? So that she can continue working on the rest of it. :)
From what I tried I'd recommend separate the calendar to 2 tasks:
Me and Ant was researching which library (point 1) to go for earlier and the info is in the commit/branch above.
@RatreeOchn feel free to drop me a message anytime if you have more specific questions
I did create the essential task above 👆and added it to this sprint instead of this one.
Design: https://www.figma.com/file/FGnP9kAFLDmraAFJf8OBAG/CNN-Roadmap?type=design&node-id=654-12690&mode=design&t=qAwDQ2uFkOwcjLqv-4
Date picker style https://ui.shadcn.com/docs/components/date-picker
Expected outcome
#FF6868
Related Tasks
1574