You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/includes/_methods.md
+48-7Lines changed: 48 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -286,30 +286,71 @@ Field Name | Purpose | Field Format
286
286
`callback(elem, meta)` | The DOM element where the markup should be inserted, and the payload object for the current insertion point. | Element, Object
287
287
288
288
289
-
## API.create(type, data)
289
+
## API.create(type, options)
290
290
291
291
> Create a Button
292
292
293
293
```javascript
294
294
(function(WIAPI) {
295
295
varAPI=newWIAPI('test-integration'); // Note: Replace 'test-integration' with your actual integration identifier.
The create method can be used to generate markup which adheres to our standard practices. This allows you to simply "create a button", for example, without having to know the inner workings of how buttons should be created on different types of sites.
311
336
312
-
Currently only the "button" type is supported, however other types will soon be added. Please let us know if there are particular types of elements you want to create so we can work to incorporate your feedback into this API.
337
+
Currently only the "button" type is supported, however other types may be added in the future. Please let us know if there are particular types of elements you want to create so we can work to incorporate your feedback into this API.
338
+
339
+
The available options for the `button` type are as follows:
340
+
341
+
Field Key | Example Value | Field Format | Purpose
0 commit comments