roberthovhannisyan / PhoneGap-Plugin-ListPicker

ListPicker Plugin for Cordova/PhoneGap (iOS and Android)
MIT License
35 stars 40 forks source link

How to make the listpicker visible in html page #23

Closed Rajesh71983 closed 6 years ago

Rajesh71983 commented 6 years ago

I am new to phonegap. I am using build.phonegap.com. I have included the plugin and example script.

Placed config object in js file var config = { title: "Select a Fruit", items: [ { text: "Orange", value: "orange" }, { text: "Apple", value: "apple" }, { text: "Watermelon", value: "watermelon" }, { text: "Papaya", value: "papaya" }, { text: "Banana", value: "banana" }, { text: "Pear", value: "pear" }
], selectedValue: "papaya", doneButtonLabel: "Done", cancelButtonLabel: "Cancel" };

And placed show picker script inside a div element like

But the listpicker is not visible in app page. Can you please help me in how to use with a use case example. Thanks in advance.

Rajesh71983 commented 6 years ago

Got it and it is showing up. Thanks.