0.0.14 • Published 2 years ago
@shop25/taskbook-iframe v0.0.14
Install
npm i @shop25/taskbook-iframe
Usage
import { createWidget } '@shop25/taskbook-iframe'
const mountElement = document.querySelector('#widget');
const widget = createWidget({
mountElement,
host: 'https://...',
projectSlug: 'partsbypost'
})
widget.onSetCount((count) => console.log(count))
widget.setOrder('store-24') # когда виджен уже загружен
widget.delete()