Skip to content

If “hide-default-header” removes sort functionality in columns, how do I get it back? #12669

Answered by Graphictank
Graphictank asked this question in Q&A
Discussion options

You must be logged in to vote

Yea, for every column you have, make a long list of th's one after the other and asign them a numerical value (1, 2, 3...) sorry for the choppy code below but GH's code tag wasn't allowing me to format it properly. Hopefully this example will get you on your way.

`th
:key="headers[1].text"
:class="['column sortable', pagination.descending ? 'desc' : 'asc', headers[1].value === pagination.sortBy ? 'active' : '']">
{{ headers[2].text }}

    <!-- Sort Asc/Desc icon -->
    <v-btn
      :ripple="false"
      height="14"
      width="14"
      x-small
      icon
      tabindex="-1">
      <v-icon
        @click="changeSort(headers[1].value)"
        x-small
        color="grey darken-1"
      …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@rigloo
Comment options

@Graphictank
Comment options

Answer selected by Graphictank
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants