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

click event on kanban block

Open mrshiva009 opened this issue 6 years ago • 6 comments

how to implement a click event on a kanban-block

mrshiva009 avatar Jan 02 '19 07:01 mrshiva009

Hi, if you are customising the kanban blocks, you could try adding a @click listener to the slot markup?

<kanban-board :stages="stages" :blocks="blocks">
  <div v-for="block in blocks" :slot="block.id" @click="handleBlockClick(block)">
    {{ block }}
  </div>
</kanban-board>

BrockReece avatar Jan 02 '19 09:01 BrockReece

Hi @BrockReece , Thanks for the response , i have tried the above click event but it didn't work either

mrshiva009 avatar Jan 02 '19 11:01 mrshiva009

Ok, I will have another think about it.

BrockReece avatar Jan 02 '19 12:01 BrockReece

Hello. Do click events work now? I'm building a project and I'm considering using this library, but I'm concerned that click events won't work on blocks. This feature is critical to my project. Thanks for making this!

Obayanju avatar Jul 11 '19 05:07 Obayanju

Hey @Obayanju i don't know whether the click event is working on this plugin, But if you are urgent about this functionality, it is available in vue-smooth-dnd plugin. You can customise it as your wish.

mrshiva009 avatar Jul 11 '19 06:07 mrshiva009

Thank you!!

Obayanju avatar Jul 12 '19 04:07 Obayanju