Socket
Socket
Sign inDemoInstall

better-keyboard

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    better-keyboard

A js keyboard component for mobile.


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

jkeyboard

A js keyboard component for mobile.

jkeyboard preview

立即使用

<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页

npm run dev

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

localhost:9090

Options 参数

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

Events 事件

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

FAQs

Last updated on 23 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc