# Dynamic Cell UI

The **Dynamic Cell UI** component contains a value and cell index assigned by its **Dynamic List UI** parent. Its role is to manage operations related to the given value, such as displaying text if it contains a string or an image if it contains a sprite.

<figure><img src="https://348920791-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeQ7CIxHuad77enwt80mG%2Fuploads%2FKFjNVBxmcGog9x3T03E6%2FDynamicCellUIComponent.PNG?alt=media&#x26;token=637229b5-8f96-4718-b43d-2f7dc9522303" alt="" width="461"><figcaption></figcaption></figure>

<table><thead><tr><th width="235">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>When Select</strong></td><td>Reference to game object that will be activated or deactivated depending on whether the value within the cell is selected by its parent Dynamic List UI. It is optional.</td></tr><tr><td><strong>When First</strong></td><td>Reference to game object that will be activated or deactivated based on whether the value within the cell is the fist among the values in its parent Dynamic List UI. It is optional.</td></tr><tr><td><strong>When Last</strong></td><td>Reference to game object that will be activated or deactivated based on whether the value within the cell is the last among the values in its parent Dynamic List UI. It is optional.</td></tr><tr><td><strong>On Refresh</strong></td><td>List of instructions that will be executed when the Dynamic Cell UI is spawned or the parent Dynamic List UI changes its selected value.</td></tr></tbody></table>

{% hint style="info" %}
The '**self'** argument property refers to the game object on which this component resides

The '**target'** argument property contains the target object of the parent Dynamic List UI
{% endhint %}
