Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(VDatatable): to solve #11117 #20615

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

berrywhj
Copy link

Description

Allow user to pass a param named sortDescendingFirst, so that the column can be sorted descending first, then ascending and (optionally) none.
resolves #11117

Markup:

packages/vuetify/dev/Playground.vue:

<template>
  <v-app>
    <h1>header rowspan/colspan</h1>
    <v-data-table
      :headers="complex"
      :items="items"
      :multi-sort="true"
      :sortDescendingFirst="true"
    >
    </v-data-table>

  </v-app>
</template>

<script setup>

  const items = Array(20).fill(0).map((_, i) => ({ id: i, name: `Name ${i}`, one: i, two: Math.random() > 0.5 ? 'foo' : 'bar', three: Math.random() > 0.5 ? 'hello' : 'world', four: i }))

</script>

@MajesticPotatoe MajesticPotatoe added T: feature A new feature C: VDataTable VDatatable labels Oct 28, 2024
@berrywhj berrywhj force-pushed the feat/Ability_to_sort_descending_on_first branch from 201fcbc to d6e7296 Compare November 11, 2024 02:03
@berrywhj berrywhj force-pushed the feat/Ability_to_sort_descending_on_first branch from d6e7296 to b6f8d80 Compare November 11, 2024 02:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C: VDataTable VDatatable T: feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants