How to reference components with dynamic ID

How do I reference a component that is created with dynamic ID?

For example, If a ListGrid is created with:
ID: “some_prefix” + “_mylistgrid”
How do I reference this ListGrid later?

Thanks.

In this example you could get a pointer to the item via window[“some_prefix” + “_mylistgrid”]

Is this what you’re after?