mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-21 00:23:02 +08:00
Tests update
This commit is contained in:
parent
9273f3320e
commit
51a4f6d2a1
@ -33,6 +33,20 @@ class Demo {
|
||||
|
||||
console.log(this.keyboard);
|
||||
setTimeout(this.keyboard.destroy, 10000);
|
||||
setTimeout(() => {
|
||||
this.keyboard = new Keyboard({
|
||||
theme: "hg-theme-default myTheme",
|
||||
onChange: input => this.onChange(input),
|
||||
onKeyPress: button => this.onKeyPress(button),
|
||||
debug: true,
|
||||
onInit: () => {
|
||||
console.log(
|
||||
"Reinitialized simple-keyboard instance:",
|
||||
this.keyboard.keyboardDOMClass
|
||||
);
|
||||
}
|
||||
});
|
||||
}, 15000);
|
||||
|
||||
/**
|
||||
* Update simple-keyboard when input is changed directly
|
||||
|
@ -10,3 +10,7 @@ input {
|
||||
.simple-keyboard {
|
||||
max-width: 850px;
|
||||
}
|
||||
|
||||
.simple-keyboard.hg-theme-default.myTheme {
|
||||
background-color: #bde6c6;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user