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
Can't reset the sorting of the table component #865
Labels
enhancement
New feature or request
Comments
theonelucas
changed the title
o-table backend sorting not being shown
Can't reset the sorting of the table component
Mar 25, 2024
@theonelucas Thanks to open this discussion. Fyi, we switched from 0.8 to the composition api. A component written with However, I will have a look at how we can provide a way to update the surrentSortColumn programmatically. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oruga version: latest
Vuejs version: latest
Description
In the vue2 version of Oruga, we could set the currently sorted column of a table by setting a reference to the
<o-table />
component and mutating the propcurrentSortColumn
, eg.:tableReference.value.currentSortColumn = {};
However, in the latest Oruga version (vue 3 / oruga 0.8.6), the
<o-table />
component no longer exposes that prop, and the only prop remotely similar to that is thedefaultSort
, which is not two-way data bonded.A two-way data bound prop or a method to change/reset the sorted column is desirable, as in our app we could reset the currently applied sorting, which now in the latest version no longer works.
The text was updated successfully, but these errors were encountered: