mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-01-19 16:52:59 +08:00
Updated types
This commit is contained in:
parent
ed944d1204
commit
c4005e7409
20
src/lib/@types/index.d.ts
vendored
20
src/lib/@types/index.d.ts
vendored
@ -111,6 +111,16 @@ declare module 'simple-keyboard' {
|
|||||||
*/
|
*/
|
||||||
inputPattern?: any;
|
inputPattern?: any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instructs simple-keyboard to use touch events instead of click events.
|
||||||
|
*/
|
||||||
|
useTouchEvents?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable useTouchEvents automatically when touch device is detected.
|
||||||
|
*/
|
||||||
|
autoUseTouchEvents?: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes the callback function on key press. Returns button layout name (i.e.: "{shift}").
|
* Executes the callback function on key press. Returns button layout name (i.e.: "{shift}").
|
||||||
*/
|
*/
|
||||||
@ -121,6 +131,16 @@ declare module 'simple-keyboard' {
|
|||||||
*/
|
*/
|
||||||
onChange?: (input: string) => any;
|
onChange?: (input: string) => any;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Executes the callback function before the first simple-keyboard render.
|
||||||
|
*/
|
||||||
|
beforeFirstRender?: () => void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Executes the callback function before a simple-keyboard render.
|
||||||
|
*/
|
||||||
|
beforeRender?: () => void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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).
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user