rss-virtual-keyboard
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "rss-virtual-keyboard", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Virtual keyboard for use in RSS tasks", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -5,4 +5,27 @@ ### How to use it | ||
import Keyboard from 'rss-virtual-keyboard'; | ||
``` | ||
Init keyboard with input element selector and container selector | ||
```javascript | ||
const kb = new Keyboard().init('.input-field', '.keyboard-container'); | ||
``` | ||
Or use HTMLElements | ||
```javascript | ||
// Need to be HTMLInputElement or HTMLTextAreaElement | ||
const input = document.createElement('input'); | ||
input.type = 'text'; | ||
// Any valid HTMLElement as container | ||
const container = document.createElement('div'); | ||
const kb = new Keyboard().init(input, container); | ||
``` | ||
And generate layout and subscribe on events | ||
```javascript | ||
// Then enerate layout to the dom | ||
kb.generateLayout(); | ||
@@ -9,0 +32,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52203
40