# GridRendererInstance

Fields, allowed values, and APIs that use GridRendererInstance.

Canonical: https://grid.syidax.com/docs/types/GridRendererInstance/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export interface GridRendererInstance<
  TRow = Record<string, unknown>,
  TValue = unknown,
  TContext = unknown,
> extends GridGuiComponent<
    GridRendererParams<TRow, TValue, TContext>,
    GridRendererGui
  > {
  refresh?(
    params: GridRendererParams<TRow, TValue, TContext>,
  ): GridMaybePromise<boolean>;
  focusIn?(): void;
  focusOut?(): void;
}
```

<a id="parents"></a>

## Contracts containing this type

- [GridRendererDefinition](https://grid.syidax.com/docs/types/GridRendererDefinition.md)
- [GridRendererDiscovery](https://grid.syidax.com/docs/types/GridRendererDiscovery.md)

<a id="related"></a>

## Related types

- [GridGuiComponent](https://grid.syidax.com/docs/types/GridGuiComponent.md)
- [GridRendererParams](https://grid.syidax.com/docs/types/GridRendererParams.md)
- [GridRendererGui](https://grid.syidax.com/docs/types/GridRendererGui.md)
- [GridMaybePromise](https://grid.syidax.com/docs/types/GridMaybePromise.md)
