Page 3 of 3
Select Component
Posted: Wed Nov 16, 2016 12:55 pm
by Serhii Kulibaba
Please set the dafault value of the variable $scope.approvedRequest.code = the first item of options (I don't see it's name from your screenshot above) so you have to run JS like below on the init function:pre$scope.selected = $scope.options[0];/pre
here selected - name of the variable, which you use in ng-model attribute
options - name of the variable from the attribute ng-options
Select Component
Posted: Wed Nov 16, 2016 1:18 pm
by Zhivko Zhelev
Yes! Finally got it. Thank you so much!
This .code missing part was the problem
Select Component
Posted: Wed Nov 16, 2016 2:27 pm
by leven.steve
Select Component
Posted: Fri Apr 03, 2020 10:10 pm
by Steve Stacey
Am an Appery newbie ... building an Ionic 4 app and struggling with getting the set in the select control. Just need a simple static option list - no data reads. Have read through docs on Appery and Ionic and nothing pops out as the solution. Any help would be appreciated.
Select Component
Posted: Mon Apr 06, 2020 10:18 am
by Serhii Kulibaba
Hello Steve,
Please click on the plus button to add these options:
Select Component
Posted: Mon Apr 06, 2020 7:39 pm
by Steve Stacey
thanks - looks like my Chrome install is acting up. I was not getting the option popup - reset to factory defaults and all is working. Thanks for the help!