Skip to content

Commit feab245

Browse files
committed
Add documentation for classes to insertCallToAction method.
1 parent 9400fa3 commit feab245

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/includes/_methods.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ The callback function for this method is used to create a data object describing
9292
Field Name | Purpose | Example Value(s) | Field Format
9393
-------------- | -------------- | -------------- | --------------
9494
`type` | The style of CTA that should be inserted. | `default`, `primary` | String
95+
`classes` | A space delimited list of class names to add to the CTA. | `custom-class1 custom-class2` | String
9596
`href` | The URL to access when the CTA is clicked. | `https://www.yourdomain.com/` | String
9697
`target` | The link target. | `_blank`, `_self` | String
9798
`onclick` | A function to attach as a click handler to the CTA. | `window.MyIntegation.clickFunction` | Function
@@ -128,6 +129,7 @@ After creating the callback object, you must then return it for the API to creat
128129
if (serviceData.hasOwnProperty(meta.vin)) {
129130
return {
130131
"type": "default",
132+
"classes": "custom-class1 custom-class2",
131133
"href": "https://www.yourdomain.com/value-a-trade/?vin=" + meta.vin,
132134
"target": "_blank",
133135
"text": {

0 commit comments

Comments
 (0)