Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to update label? #27

Open
copark86 opened this issue Dec 25, 2021 · 0 comments
Open

How to update label? #27

copark86 opened this issue Dec 25, 2021 · 0 comments

Comments

@copark86
Copy link

I am trying to implement on-the-fly multi-language support by changing labels.
I tried the following but it didn't work. Does anyone know a solution?

	var web_text = ['label1','label2']
	gui2.Register([
		{
			type: 'select',
			label: web_text[0],
			options: ["MANUAL", "AUTOGAIN", "AUTOEXPOSURE"],
			onChange: (data) => {
				console.log(data);
			}
		}
	});

	// other part of the code
	web_text[0] = 'new label in other language'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant