Best way to 'tag' existing components

We do indeed tag components in many different ways. For example:

  • if building components programatically in a loop, we use the loop to set tags with code (also this is mentioned in the post I linked to above)

  • often, if there are not too many, I set some tags in the init

  • as mentioned above, you may set them in the IDE (with bindings, python expressions, plain strings)

  • often sets or groups of components have bindings to data table rows or dictionaries, again, this is where binding comes in handy

I very rarely have to loop through groups of components where there is no prior way of tagging or identifying them. That is, I rarely have to resort to numerical indexing (since this can make for a brittle design).

If you have a specific example you can share where you find the identification/tagging of components difficult to do in a convenient way, please share so we can help more directly.

1 Like