Button and Link Functionality
Settings Traits
LINK
BUTTON
Link Trait
Present
Not Present
Text Trait
Not Present
Present
Target Trait
Present
Not Present
Default option in Action Trait.
Present
Not Present
Add To Cart, Open Popup
Present
Present
None, Apply Coupon in Action Trait
Not Present
Present
Action elements methods
linkMethod(event)
,linkMethod(event, true)
,slideWithoutHideForm(attributes, event)
,slideForm(attributes, event)
,slideMethod(attributes, event)
callMethod(event)
,toggleProductSelection(event)
,callMethod(event)
,route(event)
,slideWithoutHideForm(attributes, event)
,slideForm(attributes, event)
,slideMethod(attributes, event)
,openPopUp()
,applyCoupon(event)
,
In template.js these are a few methods which are having references only for buttons not for links.
clubLogin(buttonId, clubId, productData) remove onClickOfMyCartButton, create a task for that route(e) calculateTotals() openSurveySection(attributes, e) disableButtons() loadVariants() toggleProductSelection(e)