Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

How can I change the label values of a mobileselectmenu with javascript?

How can I change the label values of a mobileselectmenu with javascript?

Image

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

How can I change the label values of a mobileselectmenu with javascript?

Hi Bernie,

So you want to change just the label - and not the values ?? or both....

Bruce

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

How can I change the label values of a mobileselectmenu with javascript?

Hello Bernie,

Do you change these labels but it doesn't reflect the UI?
Could you please clarify have you changed anything on the Source tab?

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

How can I change the label values of a mobileselectmenu with javascript?

Hey guys,

I want to build an app that is bi-lingual.
Therefore I need to be able to witch the labels.
The value needs to be the same since that is what is going to be stored in the database.

Basically something like

if(localStorage.getItem("language")==="es"){

...change the labels to spanish

}

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

How can I change the label values of a mobileselectmenu with javascript?

The simplest way to add multilanguage support to the application is i18n plugin: https://docs.appery.io/docs/i18n
But it works for Ionic, not for JQM apps.

So we suggest you to create the Storage variable with pairs key/value (label/value) for each language and select the current one
After you saved the correct value to the Storage variable you can use that variable in the mapping to the Select component: https://docs.appery.io/docs/appbuilde...

Return to “Issues”