jkanban
jkanban copied to clipboard
Have a hook when jKanban has finished rendering
I'm planning on adding some other hooks and listeners after the board has been rendered.
therefore is it possible to have a post render hook?
Thanks for opening a new issue. The team has been notified and will review it as soon as possible. For urgent issues and priority support, visit https://xscode.com/riktar/jkanban
putting in some more context. i'm willing to enhance the cards with more context.
i've seen that if I add metadata to the item
{
'title':'You can drag me too',
'class':'green',
},
everything besides the title key if preprended by a data-
string
So my plan is to add some metadata.
data-status
= block | completed
data-icon
= grafana-icon | appdynamics-icon
and update it after the boards has finished rendering
class actually works when value is an Array
{
'title':'You can drag me too',
'class': ['green'],
},
other possibilities would be to add a progress indicator
As long jKanban is not a reactive project. We could trust that jKanban is initialized after call let jkanban = jKanban({ el: '#mykanban' )
. If you need to enhance your items (cards) after populating data. I think you can just call a function to do that after populating it.
@CrashLaker i am also trying to accomplish some things as you, like adding progress indicator, color indication, icon and images of assignees. were you able to make progress with your enhancement, do you mind sharing your experience with me, how you finally got yours to work?