Data Table Widget Set Selection
Sets the current selection on a DataTableWidget using a row key or row index.
Parameters
| Parameter | Description |
|---|---|
| Widget | The DataTableWidget. |
| Row | The target row to select. You can resolve it by row key or row index. |
| Clear If Not Found | If true, clears the current selection when the target row cannot be resolved. Default is true. |
| Sync Event System Selection | If true, also updates Unity UI's current selected object when possible. Default is true. |
| Not Found Event | Optional event to send when no matching row was found. |
Details
- If
WidgetorRowis not set, the action does nothing. - When the row is found, the widget selection updates using that row's table index and key.
- When the row is not found, the action can clear selection first and then send
Not Found Event.