> For the complete documentation index, see [llms.txt](https://docs.wirebootstrap.com/pro-pack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wirebootstrap.com/pro-pack/datatables/events.md).

# Events

DataTables for WireBootstrap extends the [wire.ui.component](https://docs.wirebootstrap.com/wirebootstrap/reference/wire.ui/wire.ui.component) class.  As such, it inherits all its base events.&#x20;

The following events are added to DataTables for WireBootstrap.

| Name                | Description                                                                                                                                                                                                                                                                                                         |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| rowClick(config)    | Raised whenever a row is clicked in the component passing the standard WireBootstrap [user event data](https://docs.wirebootstrap.com/wirebootstrap/working-with-components/configuration/events).  This bubbles the native `click` event on the table row `tr` element with additional data and context.           |
| select(config)      | Raised whenever items (rows, columns or cells) are selected in the component passing the standard WireBootstrap [user event data](https://docs.wirebootstrap.com/wirebootstrap/working-with-components/configuration/events).                                                                                       |
| deselect(config)    | Raised whenever items (rows, columns or cells) are deselected in the component passing the standard WireBootstrap \<user event data>.                                                                                                                                                                               |
| rowDblClick(config) | Raised whenever a row is double clicked in the component passing the standard WireBootstrap [user event data](https://docs.wirebootstrap.com/wirebootstrap/working-with-components/configuration/events).  This bubbles the native `dblclick` event on the table row `tr` element with additional data and context. |

```javascript
new wire.datatables().render("#select", {
    ...
    events: {
        select: (config) => {
            ...
        }    
    }
});
```
