Docs update

This commit is contained in:
Francisco Hodge
2018-11-05 17:31:11 -05:00
parent 221c41933b
commit 4e5d36173d
11 changed files with 58441 additions and 50031 deletions
+6 -2
View File
@@ -68,12 +68,16 @@ class App {
* Creates a new simple-keyboard instance
*/
this.keyboard = new Keyboard({
//debug: true,
debug: true,
layoutName: this.layoutName,
onChange: input => this.onChange(input),
onKeyPress: button => this.onKeyPress(button),
newLineOnEnter: true,
physicalKeyboardHighlight: true,
inputName: "inputPhone",
maxLength: {
inputPhone: 11
}
});
/**
@@ -81,7 +85,7 @@ class App {
*/
document.querySelector('.simple-keyboard').insertAdjacentHTML('beforebegin', `
<div class="simple-keyboard-preview">
<textarea class="input"></textarea>
<textarea class="input" maxlength="11"></textarea>
</div>
`);