Ons-select is not displayed correctly
-
Ons-select is not displayed as a select, it simply shows the 3 options.
There are no js errors on the console.
I’m using the example of the tutorial, and so it does not work.
Any suggestions?
Thanks<ons-template id="mensajes.html"> <ons-page id="mensajes"> <ons-toolbar> <div class="left"> <ons-toolbar-button onclick="fn.open()"> <ons-icon icon="md-menu"></ons-icon> </ons-toolbar-button> </div> <div id="cd_title" class="center">MENSAJES </div> <div class="right"> <ons-back-button>Volver</ons-back-button> </div> </ons-toolbar> <h3>Choose a type of select with different modifiers:</h3> <ons-select id="choose-sel" modifier="basic"> <option value="basic">Basic</option> <option value="material">Material</option> <option value="underbar">Underbar</option> </ons-select> </ons-page> </ons-template>
-
@Facundo-Arnold Just update Onsen UI. I guess you are not using 2.2.0.
-
I create the application via monaca, with the “create” command.
To upgrade to version 2.2.0, I just need to copy the libraries to \ www \ lib \ onsenui ? or via npm?
Thansk
-
Perfect, I installed the new version via copy files in the lib directory.
another question.
I can not create and attach at runtime option items
Codepen Example:
https://codepen.io/anon/pen/wJyRaq?&editors=101
-
@Facundo-Arnold Use
select-id
instead ofid
. https://onsen.io/v2/docs/js/ons-select.html#attributes
-
Excelent! Thanks again!