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

How to dynamically set data-eid with addELement()? #156

Closed
richardklingler opened this issue Jan 4, 2022 · 3 comments
Closed

How to dynamically set data-eid with addELement()? #156

richardklingler opened this issue Jan 4, 2022 · 3 comments

Comments

@richardklingler
Copy link

Trying now to implement a shop category edit/sorting function with jkanban where each board represents a certain hierarchy level...

When I set the top levels in a board like this:

'item' : [ { 'id': 1, 'title':'<input type="text" value="Living">', },
I can get the the clicked item with "el.dataset.eid" and load via Ajax the next level into the second board, where I then also set the id dynamically:

kanban1.addElement('_working', { title: '<input type="text" value="' + data[i].name + '">', id: data[i].id, });
But when looking at the inspector in firefox I don't see any data-eid="x" set...so clicking on the second level items have no effect...

How can I set this data-eid so it can be used in the click handler?

thanks in advance
richard

@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

@richardklingler
Copy link
Author

Looks this feature is only available in jkanban.js and not in jkanban.min.js...

Also getParentBoardID() is missing in jkanban.min.js....

Would be nice if function differences would be documented :-)

@marcosrocha85
Copy link
Contributor

@riktar next time you tag a new release, can you build css either?

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

2 participants