takielias / tablar

Tablar: A Laravel Dashboard Preset Based on Tabler HTML Template + Vite. https://tablar.ebuz.xyz/docs
https://tablar.ebuz.xyz
MIT License
280 stars 32 forks source link

Issue with <x-flat-picker> component #70

Closed RodolVelasco closed 2 months ago

RodolVelasco commented 2 months ago

Not able to set minDate attribute (minDate: "today") to disable all past dates from before today.

takielias commented 2 months ago

@RodolVelasco

Please update Tablar Kit and try using the following code snippet

<x-flat-picker name="birth_date"
               :options="['minDate' => now()->format('Y-m-d')]"
               class="mb-3"></x-flat-picker>
takielias commented 2 months ago

You may check https://youtu.be/zyShcQ2e5T4

RodolVelasco commented 2 months ago

Thanks for your quick response. Sadly, I was not able to make it work. I updated tablar.kit as suggested in the video and documentation. Then tried multiple ways with :options="['minDate' => now()->format('Y-m-d')]" and with :jsonOptions too. x-flat-picker works fine with the default behaviour but no success when given :options attribute. I'm using Laravel 10, tablar 10 and tablar-kit 10.

takielias commented 2 months ago

@RodolVelasco, sorry for the inconvenience. I have also updated to Tablar Kit 10.02. Please update it and let me know your feedback.

RodolVelasco commented 2 months ago

Awesome. Thanks for your quick response. Now is working perfectly!