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

Is there an ItemHover callback? #148

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

Is there an ItemHover callback? #148

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

Comments

@bairog
Copy link

bairog commented Oct 18, 2021

Am I missing something or there is no special ItemHover callback? My idea is to display minimal item info in title and show full item data in a tooltip (Bootstrap or jqueryui for example). So hover callback will be ideal for that. Or there is no such and will to use context callback?

@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

marcosrocha85 commented Oct 18, 2021

No, there's not. But you can handle that with a simple css class. Eg:

...
"item"  : [
{
  "id"    : "item-id-1",
  "title" : "Item 1"
  "class" : ["myItemHoverClass",...]
},
{
  "id"    : "item-id-2",
  "title" : "Item 2",
  "class" : ["myItemHoverClass",...]
}]
...

And implement something (jQuery probably) like:

$(".myItemHoverClass").on("hover", function(e) {
  if(e.type === "mouseenter") {
    console.log("over");
  }
  else if (e.type === "mouseleave") {
    console.log("out");
  }
});

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