@shop25/messages-iframe
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Install

npm i @shop25/messages-iframe

Usage

import { createWidget } '@shop25/messages-iframe'


const mountElement = document.querySelector('#widget');

const widget = createWidget({
    mountElement,
    host: 'https://...',
    projectSlug: 'partsbypost',
    orderName: 'store-24', # опционально, если инициализируем на странице заказа
})

widget.onSetCount((count) => console.log(count))
widget.setOrder('store-24') # когда виджен уже загружен
widget.delete()

Readme

Keywords

none

Package Sidebar

Install

npm i @shop25/messages-iframe

Weekly Downloads

2

Version

0.0.7

License

none

Unpacked Size

7.98 kB

Total Files

6

Last publish

Collaborators

  • elon26
  • mdanon
  • ssipak
  • vovka25