# Table

![Bootstrap Table](/files/-MK1A60bhZ83TKjN_ee7)

Bootstrap's [table](https://getbootstrap.com/docs/4.0/content/tables) enhances the basic HTML table.

![](/files/-MK1AMVHTRv3M013MWNp)

Use the `bsTable` class to create an instance of Bootstrap's table inside WireBootstrap.

```javascript
const myTable = new wire.bsTable();
```

Render the component using an HTML `table` element.

```javascript
<table id="table" class="table table-hover table-striped"></table>
...
myTable.render("#table",{
    ...
});
```

### Web Component

Use the `wire-bs-table` web component to render the component using [Web Components](/bootstrap/web-components.md).

```html
<wire-bs-table wr-config=""></wire-bs-table>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wirebootstrap.com/bootstrap/table.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
