# JsonWidget.setPreview

Sets the item preview uuid for a json widget. Passing nil clears the preview.

**Kind:** Function

**Environments:** Game

## Game

### Overload 1

``` { .lua .api-signature }
jsonWidget:setPreview( uuid )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/JsonWidget.md#setpreview-uuid)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `jsonWidget` | [JsonWidget](../Game-Script-Environment/Userdata/JsonWidget.md) | The JsonWidget. |
| `uuid` | uuid | The item uuid. |

### Overload 2

``` { .lua .api-signature }
jsonWidget:setPreview( string )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/JsonWidget.md#setpreview-string)

**Availability:** Client only

Sets the blueprint preview path for a json widget. Passing nil clears the preview.

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `jsonWidget` | [JsonWidget](../Game-Script-Environment/Userdata/JsonWidget.md) | The JsonWidget. |
| `string` | string | The blueprint path. |

### Overload 3

``` { .lua .api-signature }
jsonWidget:setPreview(  )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/JsonWidget.md#setpreview-no-arguments)

**Availability:** Client only
