Skip to content

How to update label? #27

@copark86

Description

@copark86

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions