private-package-neko

1.0.0 • Public • Published

call1800-dialpad is an embeddable element that allows your users make calls to 1800 numbers completely free.

Installation

via NPM (recommended)

npm install call1800-dialpad-js

via CDN

<link href="<ADD_LINK_HERE>"></link>
<script src="<ADD_LINK_HERE>"></script>

Usage

Quick start

  1. Add dialpad.css to your styles.

  2. Initialize dialpad with Javascript.

import Dialpad from 'call1800-dialpad-js'; // if you used cdn Dialpad class is available at window.Dialpad

cosnt dialpad = new Dialpad();
dialpad.render();

Available methods

dialpad.call(number)

Starts a call to number parameter. number must be a String that starts with 18xx and exactly 11 characters long.

dialpad.hangUp()

Stops active call.

dialpad.toggle()

Collapse and open dialpad.

dialpad.open()

Opens dialpad.

dialpad.close()

Collapses dialpad.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.01

Package Sidebar

Install

npm i private-package-neko

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

214 kB

Total Files

4

Last publish

Collaborators

  • fahrenq