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

Have a hook when jKanban has finished rendering #153

Open
CrashLaker opened this issue Dec 26, 2021 · 5 comments
Open

Have a hook when jKanban has finished rendering #153

CrashLaker opened this issue Dec 26, 2021 · 5 comments

Comments

@CrashLaker
Copy link

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?

@xscode-auto-reply
Copy link

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

@CrashLaker
Copy link
Author

putting in some more context. i'm willing to enhance the cards with more context.
image

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

image

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

@CrashLaker
Copy link
Author

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

image

@marcosrocha85
Copy link
Contributor

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.

@eazuka
Copy link

eazuka commented Jul 23, 2022

@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?

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

3 participants