ott-web-component
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Built With Stencil

Installation (In development)

Node Modules

Inside your project folder do:

npm i ott-web-component

Then put a script tag similar to this <script src='node_modules/ott-web-component/dist/ott-web-component.js'></script>

Script tag

Add script tag similar to this <script src='https://unpkg.com/ott-web-component/dist/ott-web-component.js'></script>

Components

Manual call web component

<manual-call open="false" demo="true" cus-style=".btn{color: yellow !important}' phone="{your phone}" token="{your twilio token}" id="manual-call-id"></manual-call>

Params

  • open
    (false or true) Whether to open manual call box - use $('#manual-call-id').open to change open value
  • demo
    (false or true) Whether show 'Open Manual Call Box' button - normally set false, use open to control open or hidden
  • cus-style
    Custom style, ex: cus-style=".btn{color: yellow !important}"
  • phone
    Phone that you want to call, need set one default value, and then can use $('#manual-call-id').phone to change
  • token
    Twilio token

Method

  • $('#manual-call-id').twilioCall()
    Create one call connect with the phone & token

Readme

Keywords

none

Package Sidebar

Install

npm i ott-web-component

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

2.91 MB

Total Files

75

Last publish

Collaborators

  • cocoli