Search code examples
androidcordovaionic-frameworkcordova-plugins

Cordova dialog with single choice selection


I am trying to replicate android native app single choice selection dialog via cordovaDialog but fail to find any documentation about that. Anyone know how can i replicate it when developing in ionic framework 1?

enter image description here


Solution

  • If u r using cordova or ionic. You can easily do it with html select tag. There is no need of additional code for dialog.

    <select id='yourselect'>
    <option value='coke'>coke</option>
    <option value='pepsi'>pepsi</option>
    </select>
    

    And use javascript to detect selection