Select Component

This forum contains topics that were moved from Get Satisfaction
Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Select Component

Post 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

Zhivko Zhelev
Posts: 0
Joined: Tue May 31, 2016 6:59 am

Select Component

Post by Zhivko Zhelev »

Yes! Finally got it. Thank you so much!
This .code missing part was the problem

leven.steve
Posts: 0
Joined: Sun Mar 04, 2012 4:01 pm

Select Component

Post by leven.steve »

.

Steve Stacey
Posts: 0
Joined: Fri Apr 03, 2020 9:53 pm

Select Component

Post 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.

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Select Component

Post by Serhii Kulibaba »

Hello Steve,

Please click on the plus button to add these options:
Image

Steve Stacey
Posts: 0
Joined: Fri Apr 03, 2020 9:53 pm

Select Component

Post 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!

Post Reply