mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-03-16 00:11:07 +08:00
onInit callback
This commit is contained in:
parent
0f1936b03e
commit
a321ab9b91
@ -223,6 +223,20 @@ class SimpleKeyboard {
|
|||||||
document.addEventListener("touchend", handler);
|
document.addEventListener("touchend", handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onInit = () => {
|
||||||
|
if(this.options.debug){
|
||||||
|
console.log("Initialized");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Caret handling
|
||||||
|
*/
|
||||||
|
this.handleCaret();
|
||||||
|
|
||||||
|
if(typeof this.options.onInit === "function")
|
||||||
|
this.options.onInit();
|
||||||
|
}
|
||||||
|
|
||||||
render = () => {
|
render = () => {
|
||||||
/**
|
/**
|
||||||
* Clear keyboard
|
* Clear keyboard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user