-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Footer button to add items on a specific board #176
Comments
Hi @Brecht272727, itemAddOptions - only adds the options to the pre-existing Add item button when creating the JKanban object. Button can be in the footer or in the item stream. buttonClick: function (el, boardId) { ...is the function you are looking for. It is called when the Add Item button is clicked. It auto provides as a parameter the footer button's Board ID. You fill in the code for it, inside the code area where you create/instantiate the JKanban ...example:
|
Hi @WriterStat, thanks for your reply. But what to do if we want a header and footer button? We just have one |
True, only the footer button is provided in the current jkanban lib by the author under open source, so you would have to: Either: ... Fork the library and then add/fill in the code to the library. This lib is the Board/Item DOM creation + Drag and Drop. We chose option 2 above and did the add item top button ourselves outside of the library in our own code. So it can be easily done. But I don't want to fill up the author's area here with code. I think they would post the code if they wanted it here. May I ask what your goal for the lib is? Briefly. Just curious. |
I added some features by pulling request jKanban. Pull requests are always welcome. =) |
@marcosrocha85: Can you tell what is changed? |
First thing WriterStat said is how you make a pull request in order to implement a feature you want and share with community. I said that most behavior I wanted, I developed and share through pull request. |
@WriterStat: I solved it outside of the library like you did. All working now! My goal is to make a kanban board for all salesmen. Boards are To call, 1 time called, 2 times called, Processed and Unreachable :-) |
Looks great! And sounds great! Cheers, -C |
Hi, i use following function to add a footer button. I want this to add a new item for that specific board but i don't have the board ID.
If it can add an onclick like
onclick=\"add_item('"+boardId+"')
to the button it would be nice.Maybe i can use this to add a footer button but this script shows only buttons in the header of the boards.
The text was updated successfully, but these errors were encountered: