Adding interaction option allowing user to choose between click and hover functionality#41
Adding interaction option allowing user to choose between click and hover functionality#41lukehillonline wants to merge 2 commits into
Conversation
|
@lukehillonline Hey, sorry for the delay in responding to this. Haven't had any time to focus on Kwicks recently, but thank you for the pull request! I'll do my best to review this in the near future. |
|
@jmar777 Hey, that's no problem, I love your plugin and it was exactly what I needed for a project, I just needed it to work on click so I thought I would add it in. This is my first contribution on github so apologies if it is not perfect. |
|
@jmar777, well done! |
|
@lukehillonline, When will you update library with this |
|
@nightkon Thanks! I don't have permission to update the library and it is owned by @jmar777, so it is down to him when this gets merged. I did forget to update the documentation so I will update this over the weekend. |
Users can now use the 'interaction' option to choose between having on hover or on click interactions. The default interaction is set to 'hover' and the available options to the user are 'hover' and 'click' this is used like so:
$(function() {
$('.kwicks').kwicks({
interaction: 'click'
});
});