react-kanban icon indicating copy to clipboard operation
react-kanban copied to clipboard

Ability to individually control if a card can be dragged

Open acroyear opened this issue 5 years ago • 6 comments

In my app, I have fixed cards that represent wrappers around the cards that can actually be moved around (e.g., albums, folders, artists). I'd like to be able to block the dragging action in these case, by having either a property in the card, or a a preDragStart event that I can use to answer yes/no if the card can be moved.

Yes, I know it kind of violates the general trend of the open kanban idea, but there may be, in process workflow uses, reasons why a card shouldn't be moved yet. One example, if you have a checklist in in an agile board, and should block moving it on until the checklist items are all flagged complete. Card ownership and permissions is another possible use case.

acroyear avatar May 16 '20 16:05 acroyear