Trigger position (cart)
Description
Define relative position to selector element where trigger to add an item to the cart or delete it from the cart will be inserted. Acceptable values to insert trigger are:
-
beforebegin
: beforeselector
element itself -
afterbegin
: just inside theselector
element, before its first child -
beforeend
: just inside theselector
element, after its last child -
afterend
: after theselector
element itself
Default value
By default trigger will be inserted inside <h4>
as a first child of it.
<h4>Result item title</h4>
itemTrigger: {
selector: 'h4',
position: 'afterbegin',
}