Skip to content

Column Reorder and Toggle support for Table #1098

@melinashak-noaa

Description

@melinashak-noaa

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>

Metadata

Metadata

Assignees

Labels

Type: EnhancementIssue contains an enhancement related to a specific component. Additional functionality has been add

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions