mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-22 09:49:32 +08:00
fix: onInit and onRender are always called with the instance
This commit is contained in:
parent
6721d6aa7d
commit
d5419b9930
@ -264,12 +264,12 @@ export interface KeyboardOptions {
|
|||||||
/**
|
/**
|
||||||
* Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).
|
* Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).
|
||||||
*/
|
*/
|
||||||
onRender?: (instance?: SimpleKeyboard) => void;
|
onRender?: (instance: SimpleKeyboard) => void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes the callback function once simple-keyboard is rendered for the first time (on initialization).
|
* Executes the callback function once simple-keyboard is rendered for the first time (on initialization).
|
||||||
*/
|
*/
|
||||||
onInit?: (instance?: SimpleKeyboard) => void;
|
onInit?: (instance: SimpleKeyboard) => void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the current input
|
* Retrieves the current input
|
||||||
@ -295,4 +295,4 @@ export interface KeyboardOptions {
|
|||||||
* Module options can have any format
|
* Module options can have any format
|
||||||
*/
|
*/
|
||||||
[name: string]: any;
|
[name: string]: any;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user