mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
feat(plugin): add keyboard
This commit is contained in:
parent
765ef48a23
commit
a80c4ee2bf
50
src/plugins/keyboard.ts
Normal file
50
src/plugins/keyboard.ts
Normal file
@ -0,0 +1,50 @@
|
||||
import {Cordova, Plugin} from './plugin'
|
||||
import {Observable} from "rxjs/Observable";
|
||||
|
||||
@Plugin({
|
||||
plugin: 'ionic-plugin-keyboard',
|
||||
pluginRef: 'cordova.plugins.Keyboard',
|
||||
repo: 'https://github.com/driftyco/ionic-plugin-keyboard'
|
||||
})
|
||||
export class Keyboard {
|
||||
|
||||
/**
|
||||
* Hide the keyboard accessory bar with the next, previous and done buttons.
|
||||
* @param hide {boolean}
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true
|
||||
})
|
||||
static hideKeyboardAccessoryBar(hide : boolean) : void {}
|
||||
|
||||
/**
|
||||
* Close the keyboard if open
|
||||
*/
|
||||
@Cordova({
|
||||
sync: true
|
||||
})
|
||||
static close() : void {}
|
||||
|
||||
@Cordova({
|
||||
sync: true
|
||||
})
|
||||
static disableScroll(disable : boolean) : void {}
|
||||
|
||||
@Cordova({
|
||||
sync: true
|
||||
})
|
||||
static show() : void {}
|
||||
|
||||
@Cordova({
|
||||
sync: true
|
||||
})
|
||||
static close() : void {}
|
||||
|
||||
//static onKeyboardShow() : Observable<any> {
|
||||
// return new Observable(
|
||||
// observer => {
|
||||
//
|
||||
// }
|
||||
// );
|
||||
//}
|
||||
}
|
Loading…
Reference in New Issue
Block a user