guify icon indicating copy to clipboard operation
guify copied to clipboard

How to update label?

Open copark86 opened this issue 4 years ago • 0 comments

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'

copark86 avatar Dec 25 '21 09:12 copark86