0.5.30 • Published 6 years ago
@thebigcrunch/sdk v0.5.30
TheBigCrunch SDK
Introduction
TheBigCrunch SDK is used to seemlessly embed cells from TheBigCrunch into your website. When the cell changes your website changes. Using the SDK you can also react to changes made in TheBigCrunch and change the display of your site.
API
Crunch(spaceId, callback)
Used to fetch and display cells from TheBigCrunch
spaceId- The id of the space from TheBigCrunch you would like to display eg.dGJjXy0yOF8tNTM=callback- a callback functioncallbackfunction is provided, the function is called with the data of the cell
Vizzy (options { spaceId, selector, onChange, onConfig })
Used to create Vizzy's in TheBigCrunch.
optionsselectoronChangea function that is called when the cell value changesonConfigspaceIdWhy is this needed?
HandleData(spaceId, selector, data, onChange)
spaceIdThe id of the space from TheBigCrunch you would like to displayselectorA selector that selects the element on your page where the cell is to be displayeddata-onChangeNot used