@thebigcrunch/sdk
v0.5.30
Published
The big crunch SDK library
Downloads
13
Readme
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 functioncallback
function 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.
options
selector
onChange
a function that is called when the cell value changesonConfig
spaceId
Why is this needed?
HandleData(spaceId, selector, data, onChange)
spaceId
The id of the space from TheBigCrunch you would like to displayselector
A selector that selects the element on your page where the cell is to be displayeddata
-onChange
Not used