Trigger
Type | String |
Available options | "hover" , "click" |
Default | "hover" |
Determines which event triggers the popover opening.
Hover
If set to hover, Coupdoeil will listen for "mouseover"
event to trigger opening. Popover will stay open while mouse is hovering either coup-doeil
element or popover element and close when leaving them.
Click
If set to click, Coupdoeil will listen for "click"
event to trigger opening. To close popover, user must click outside of coup-doeil
or popover elements. Popover will also close on click on an element contained within the popover element that has the attribute data-popover-close
.
Note that the coup-doeil
element itself won’t trigger a popover 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 popover since a disabled button does not emit click events.