# better-keyboard

> A js keyboard component for mobile.

Latest version **0.0.2** (published 2017-04-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install better-keyboard
pnpm add better-keyboard
yarn add better-keyboard
bun add better-keyboard
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-04-23 |
| First published | 2017-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 55 |
| Author | XiaoWenpeng |
| Maintainers | xwpongithub |

## Links

- npm: https://www.npmjs.com/package/better-keyboard
- Repository: https://github.com/xwpongithub/jkeyboard
- Homepage: https://github.com/xwpongithub/jkeyboard#readme
- Issues: https://github.com/xwpongithub/jkeyboard/issues
- npm.io page: https://npm.io/package/better-keyboard

## Dependencies (1)

- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.23.0

## Recent versions

- 0.0.2 (latest) — 2017-04-23

## README

# jkeyboard
A js keyboard component for mobile.

![jkeyboard preview](./demo.gif)  

## 立即使用

```HTML
<body>
  <script type="text/javascript" src="jkeyboard.js"></script>
  <script type="text/javascript">
    var keyboard = new JKeyboard({
      onInput: function (key, rs) {
          // do something
      },
      onClose: function () {
         // do something
      },
      onShow: function () {
         // do something 
      },
      onDelete: function (rs) {
         // do something
      }
    });                             
  </script>
</body>
```  
测试demo页

```shell
npm run dev
```

打开浏览器访问如下地址, 查看效果

> localhost:9090  

## Options 参数  

-  defaultResult: `[]` 默认值
-  containEl:  `body` 父级容器
-  closeTitle: `完成` 关闭按钮文本
-  max:  `6` 最大长度

## Events 事件

-  onInput  点击数字按钮
-  onClose  键盘关闭
-  onClosed 关闭动画结束后 
-  onShow  键盘打开
-  onDelete 点击删除按钮

---
_Source: https://npm.io/package/better-keyboard · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
