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

with onUpdate, onAdd can we get index or item as argument to event #134

Open
prashantnirgun opened this issue May 7, 2024 · 0 comments
Open

Comments

@prashantnirgun
Copy link

prashantnirgun commented May 7, 2024

I have to maintain visible and invisible column list, any column can eighter be visible or invisible. array is as follows

const categoryColumns = [
  {
    name: 'category_name',
    label: 'Category Name',
    display: { visible: true, required: true, index: 0 },
    sort: { order: 'Desc', index: 0, sortable: true },
  },
  {
    name: 'slug',
    label: 'Slug',
    display: { visible: true, required: false, index: 1 },
    sort: { order: 'Desc', index: 0, sortable: true },
  },
]

Once the column is added, removed or updated I have to update its display attribute and index e.g. display: { visible: true, required: true, index: 1 } Is there any way I can update the properties.
And there are few columns which are always required I just want them permanently in visibleColumn in short not draggable. Here in this case required property

I am using Dual List Drag and Drop and as Component Usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant