mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Merge in v5 code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||
|
||||
export interface WheelSelectorItem {
|
||||
description?: string;
|
||||
@@ -55,7 +55,7 @@ export interface WheelSelectorOptions {
|
||||
* key/value to be displayed
|
||||
* Default: description
|
||||
*/
|
||||
displayKey?: string;
|
||||
displayKey?: string;
|
||||
}
|
||||
|
||||
export interface WheelSelectorData {
|
||||
@@ -101,7 +101,7 @@ export interface WheelSelectorData {
|
||||
* { name: "Gordon", id: '103' },
|
||||
* { name: "Smith", id: '104' }
|
||||
* ]
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* ...
|
||||
*
|
||||
@@ -155,7 +155,7 @@ export interface WheelSelectorData {
|
||||
* ],
|
||||
* displayKey: 'name',
|
||||
* defaultItems: [
|
||||
* {index:0, value: this.jsonData.firstNames[2].name},
|
||||
* {index:0, value: this.jsonData.firstNames[2].name},
|
||||
* {index: 0, value: this.jsonData.lastNames[3].name}
|
||||
* ]
|
||||
* }).then(
|
||||
@@ -200,5 +200,7 @@ export class WheelSelector extends IonicNativePlugin {
|
||||
@Cordova({
|
||||
platforms: ['iOS']
|
||||
})
|
||||
hideSelector(): Promise<void> { return; }
|
||||
hideSelector(): Promise<void> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user