# Frozen columns

Some tables might require columns to be frozen (constantly visible and stuck to the left or right of the table). In such cases it is possible to add a `freeze=""` field to the relevant `column`, which will cause it to be shown statically.

Like most properties, the value can be the result of a function and it is therefore possible to dynamically 'pin' columns to the left or right with additional JavaScript/TypeScript logic.

{% hint style="info" %}
**Note:** It is possible to freeze multiple columns, but a single column *cannot* be frozen both `left` and `right`.
{% endhint %}

***

## Frozen Left

```xml
<object-table>
    <column freeze="left" heading="Column 1">{name}</column>
    <column freeze="left" heading="Column 2">{name}</column>
    <column heading="Column 3">{name}</column>
    ...
</object-table>
```

![](https://2865107717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9TCHLR67eLHBOjPvHhud%2Fuploads%2Fgit-blob-7aa0688d7ae8466ca6752761928e41d885c69d45%2Fobject-table-column-freeze-left.png?alt=media)

### Frozen Right

```xml
<object-table>
    <column heading="Column 1">{name}</column>
    ...
    <column freeze="right" heading="Column 4">{name}</column>
    <column freeze="right" heading="Column 5">{name}</column>
</object-table>
```

![](https://2865107717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9TCHLR67eLHBOjPvHhud%2Fuploads%2Fgit-blob-28010c49b194d73b6dec508dba205d1bfd64eb5d%2Fobject-table-column-freeze-right.png?alt=media)

### Frozen Left and Right

```xml
<object-table>
    <column freeze="left" heading="Column 1">{name}</column>
    ...
    <column freeze="right" heading="Column 5">{name}</column>
</object-table>
```

![](https://2865107717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9TCHLR67eLHBOjPvHhud%2Fuploads%2Fgit-blob-c0a33b49ccc8d3a04750461c7b153687d112c402%2Fobject-table-column-freeze-left-right.png?alt=media)
