Skip to content
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

Column Reorder and Toggle support for Table #1098

Closed
melinashak-noaa opened this issue Mar 17, 2021 · 0 comments
Closed

Column Reorder and Toggle support for Table #1098

melinashak-noaa opened this issue Mar 17, 2021 · 0 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@melinashak-noaa
Copy link

I'm currently experiencing an issues with the PrimeVue Datatable column reorder feature. It works great when all of the columns are displayed in a table, but when I hide columns off using the column toggle feature, the reorder functionality stops working.

<template #header>
    <div style="text-align:left">
      <MultiSelect
        v-model="displayColumns"
        :options="columnOptions"
        optionLabel="header"
        placeholder="Select Columns"
        style="width: 20em"
        appendTo="body"
      >
        <template #value="slotProps">
          <div>Display Columns</div>
        </template>
      </MultiSelect>
    </div>
</template>
   <Column
    v-for="col of displayColumns"
    :field="col.field"
    :header="col.header"
    :key="col.field"
    :headerStyle="'width: ' + col.width + 'px'"
  />
</DataTable>
@cagataycivici cagataycivici added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add priority - medium labels May 10, 2021
@cagataycivici cagataycivici changed the title Column reordering not working with column toggle Column Reorder and Toggle support for Table May 10, 2021
@cagataycivici cagataycivici added this to the 3.5.0 milestone May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

3 participants