Trigger
| Type | String |
| Available options | "hover", "click" |
| Default | "hover" |
Determines which event triggers the hovercard opening.
Hover
If set to hover, Coupdoeil will listen for "mouseover" event to trigger opening. Hovercard will stay open while mouse is hovering either coup-doeil element or hovercard element and close when leaving them.
Click
If set to click, Coupdoeil will listen for "click" event to trigger opening. To close hovercard, user must click outside of coup-doeil or hovercard elements. Hovercard will also close on click on an element contained within the hovercard element that has the attribute data-hovercard-close.
Note that the coup-doeil element itself won’t trigger an hovercard opening. It must therefore contain at least one element that will emit click/mouseover events.
If the coup-doeil element only child element is a disabled button and trigger is click, clicking on the button won’t open the hovercard since a disabled button does not emit click events.