0.1.1 • Published 4 years ago

ott-web-component v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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
0.1.1

4 years ago

1.1.0

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago