jasonmamy / cordova-wheel-selector-plugin

Wheel selector for Cordova (Android/iOS)
MIT License
65 stars 36 forks source link

Add browser functionality fallback #45

Open jasonmamy opened 5 years ago

jasonmamy commented 5 years ago

Need to add browser functionality if the plugin is running on a browser and not a device (or even PWA on device).

Can use the Ionic PickerController which will pop up a javascript-based picker:

async showSelectorr() { const picker = await this.pickerCtrl.create({ buttons: [{ text: 'Done', handler: (data: PickerSelected) => this.getPickerData(data) } ], columns: [{ name: 'quantity', options: this.quantity},{ name: 'measure', options: this.measures}, ], });

await picker.present();

}