i want to use ons-select in my app. and i have added it into my code, then debug the app, but the emulate show nothing. by the way, webstom alert me that 'can not find the ons-select tag'. so how to use ons-select in onse-ui-1.3.1? Any help is really appreciated. The code:
<ons-select ng-model="mediaTypes.type" ng-change="search()">
<option value="all" selected>All Media</option>
<option value="musicVideo">Video</option>
<option value="movie">Movie</option>
<option value="music">Music</option>
<option value="podcast">Podcast</option>
<option value="tvShow">TV Show</option>
</ons-select>
I think what you are looking for is ons.platform.select()
method. However it is a new feature added in Onsen 1.3.2 that is currently under development. If you cannot wait until it is released you can use the version in Onsen UI's master branch. Hope it helps!
Edit:
After you updated your code I realised you are looking for something different, not ons.platform.select()
. Looks like the tag <ons-select>
was removed from Onsen UI. Normal HTML <select>
should be enough.