Ability to Reference Components by String

Currently, the only way to select a Component or its properties via code is:

Component_Name.Property

This results in a lot of manual code when trying to replicate behavior across multiple components of the same type referencing their properties. It would be much easier to do if we could reference components and their properties via string so we could set up functions based on their ids. For example:

Table1.selectedRow.data

could be:

selectComponentByID['Table1'].selectedRow.data

Related post for reference

1 Like

Hey @jstarkweather! This kind of functionality has been on my radar for a while but has had additional performance concerns to roll out. We're currently working on a JS sandbox refactor that might make performance on this no longer a significant issue and will be revisiting this after that rollout in a few months

1 Like