@letsnova/vue-jivosite

1.0.3 • Public • Published

jivosite

Vue plugin for Jivosite live chat

Usage

  1. Install the package
$ npm i @bchteam/vue-jivosite
  1. Use the plugin
import VueJivosite from '@bchteam/vue-jivosite'

Vue.use(VueJivosite, { widgetId: 'Et2u4i' })
  1. Handler for success/failed loading can be added:
import VueJivosite from '@bchteam/vue-jivosite'

Vue.use(VueJivosite, {
  widgetId: 'Et2u4i',
  onInit() {
    console.log('Success!')
  },
  onFail(error) {
    console.log('Failed :-(', error)
  }
})

If onFail handler is not provided, failed initialization throws exception (because of unhandled promise rejection).

Readme

Keywords

none

Package Sidebar

Install

npm i @letsnova/vue-jivosite

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

19.7 kB

Total Files

9

Last publish

Collaborators

  • letsnova