# Filters

A `filter` can be enabled on a column to allow filtering of data in that column.

![](https://2865107717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9TCHLR67eLHBOjPvHhud%2Fuploads%2Fgit-blob-0500bd60718a5fe3d6ce70fb620ae76a8dbafcdc%2Fbject-table-filters-example.png?alt=media)

### Enabling filters on a column level

Make use of the `filter` field to enable it for a specific column.

```xml
<object-table ... >
    <column heading="Last Name" filter="true">{last_name}</column>
    ...
</object-table>
```

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

### Enabling filters on a table level

Filters can be enabled for all columns using the [`default-filter`](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/object-table/..#default-filter) attribute on the object-table.

```xml
<object-table ... default-filter="true">
    ...
</object-table>
```

### Filter types

Depending on the type of data in the column, different types of filters will appear to cater for that type of data. For example, date fields will show date filters, and text fields will show text filters.

### Exposing table data

It is possible to access filtered table data. These methods are available in the `controls` context of the `object-table`. See the [Exposing data section in the guide](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/object-table/object-table-guides/controls) for `object-table` `controls` for details.
