-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report][3.7.6] VDataTable does not recognize v-model:options #20860
Comments
When used like this:
I get the logs upon interaction: This is what I would expect after reading API docs. User interaction is required for this event to be triggered. Your use case does not seem to require this event to be triggered right after table is mounted (without interaction), so it should be good enough (example - sorta the same as your middle version). You cannot simply bind all saved options to the |
Thanks for the quick feedback 👍 My use case does require the @update:options event not to be triggered when there is no interaction. I've created a - hopefully - better Example to make my point clear. If :options is not supported in v3 (ExampleTable1) and the ExampleTable2 is working as expected, than I guess the issue can be closed. Maybe I should try to create a wrapper component for the v-data-table that can handle :options. |
@Sh4bbY , I believe you are trying your best to explain your point, but there is either some detail about actually loading the data from persistent store during initialization or maybe you just need to step back and look from another angle. Since your code already has "default" options defined, you don't need anything to be put in persistent storage - it would be redundant. If you somehow really need it... just add To summarize, |
Environment
Vuetify Version: 3.7.6
Vue Version: 3.5.13
Browsers: Chrome 131.0.0.0
OS: Windows 10, Linux
Steps to reproduce
In the reproduction example you can find 3 versions of a v-data-table.
Expected Behavior
v-model:options should be recognized
Actual Behavior
v-model:options is not recognized
Reproduction Link
https://play.vuetifyjs.com/#...
Other comments
Unfortunately I could not find any infomation about the exposed v-model: attributes of the v-data-table in the documentation. Therefore do not know if my bug report, maybe should be a feature request. It is working when every options property is specified and listened to individually, but this approach would be quite bulky. especially when used on every table.
My Intention is to save the page-options per page for every table on that page. When a user comes back to the page, the stored table props should be preset.
Why is there no documentation of the exposed v-model attributes? or was I just not capable of finding it?
The text was updated successfully, but these errors were encountered: