0.1.1 • Published 4 years ago
ott-web-component v0.1.1
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 valuedemo
(false or true) Whether show 'Open Manual Call Box' button - normally set false, useopen
to control open or hiddencus-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 changetoken
Twilio token
Method
$('#manual-call-id').twilioCall()
Create one call connect with the phone & token