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

Add HTML form to the arbitrary position #149

Closed
bairog opened this issue Oct 18, 2021 · 3 comments
Closed

Add HTML form to the arbitrary position #149

bairog opened this issue Oct 18, 2021 · 3 comments
Labels

Comments

@bairog
Copy link

bairog commented Oct 18, 2021

As I can see addForm function adds html element to the very bottom of the board. But can I add to the arbitrary position (for example between 1st and 2nd items)? Is there any workaround?

@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

@marcosrocha85
Copy link
Contributor

There are a couple of solutions here:

  1. You can create a "temporary card" which has your HTML and set drake.cancel(true) at dragEl when user tries to drag it. Isn't so elegant but works; or
  2. Use a library like WebUI Popover in order to show a small popover allowing to user interact with your functions.

In a project of mine, I used addForm along with jquery.scrollTo in order to scroll user down when he/she clicked at "Add New". For fast editing actions I show a popover along some elements (User, Tags...). If user wants to edit full data, they click at card and I show a Dialog with all options.

@riktar
Copy link
Owner

riktar commented Oct 18, 2021

Closed

@riktar riktar closed this as completed Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants