This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
Installation is done using the
npm install
command:
$ npm install dial-pad@latest --save
"styles": [
"node_modules/dial-pad/dist/dial-pad.css",
"src/styles.scss"
],
"scripts": [
"node_modules/dial-pad/dist/dial-pad.js",
],
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../lib/dial-pad.css">
<script src="../lib/dial-pad.js"></script>
<script src="./main.js"></script>
<title>Document</title>
</head>
<body>
<button id="dial-pad-picker">Open Dial</button>
</body>
</html>
In your javascript file
main.emitter({
eventValue: (value) => {
console.log(value);
}
});