Vue Bootstrap Tables Styles
Vue Table Styles - Bootstrap 4 & Material Design
Note: This documentation is for an older version of Bootstrap (v.4). A
newer version is available for Bootstrap 5. We recommend migrating to the latest version of our product - Material Design for
Bootstrap 5.
Go to docs v.5
Vue Bootstrap table styles are table components with additional elements like buttons, checkboxes, icons, panels & more.
Table with checkboxes
See all available options of checkboxes in the Checkbox documentation.
Default checkboxes
|
Lorem | Ipsum | Dolor |
---|---|---|---|
|
Cell 1 | Cell 2 | Cell 3 |
|
Cell 4 | Cell 5 | Cell 6 |
|
Cell 7 | Cell 8 | Cell 9 |
Material checkboxes MDB Pro component
|
Lorem | Ipsum | Dolor |
---|---|---|---|
|
Cell 1 | Cell 2 | Cell 3 |
|
Cell 4 | Cell 5 | Cell 6 |
|
Cell 7 | Cell 8 | Cell 9 |
Table with icons
To learn more about icons read Icons usage documentation or Full list of 600+ icons
# | Lorem | Ipsum | Dolor |
---|---|---|---|
1 | Cell 1 | Cell 2 | Cell 3 |
2 | Cell 4 | Cell 5 | Cell 6 |
3 | Cell 7 | Cell 8 | Cell 9 |
Table with panel
See all the available options in the Panels documentation and Cards documentation.
Advanced table options
For advanced options of the tables have a look at specific documentation pages listed below.
Tables with additional elements and customization options
Tables with buttons, checkboxes, icons, panels & more.
Table responsive
Advanced options of responsive tables
Datatables
MDBootstrap integration with the most popular plugin enhancing the possibilities of standard tables.
Table pagination
Pagination is a simple navigation which lets you split a huge amount of content within the tables into smaller parts.
Table search
MDBootstrap search box enables super fast searching among all the data of the table.
Table sort
This functionality lets you sort the data of the tables according to any specific columns.
Table scroll
If your table is too long or too wide you can limit its size and enable scroll functionality.
Table editable
Table editable allows you to edit existing data within the table and add new data to the table.
Vue Bootstrap Tables - API
This section present detailed information about Tables usage, properties and customization. Dive into API references to find see all available props and methods.
Imports
To start working with Basic Tables you need to import three components.
mdbTbl, mdbTblBody and mdbTblHead extends native HTML tags with MDB's styles and functions.
API Reference: Table component
All properties and options refered to mdbTbl
component.
Properties
Name | Type | Default | Description | Example |
---|---|---|---|---|
striped |
Boolean | false |
Adds zebra-striping to any table row. | <mdb-tbl striped> |
bordered |
Boolean | false |
Adds border on all table's and cell's sides. | <mdb-tbl bordered> |
borderless |
Boolean | false |
Disables border on all table's and cell's sides. | <mdb-tbl borderless> |
hover |
Boolean | false |
Adds hover state on table rows (rows are marked on light-grey color). | <mdb-tbl hover> |
small |
Boolean | false |
Cuts cell's padding by half. | <mdb-tbl small> |
reponsive |
Boolean | false |
Makes table scrollable horizontally when screen width is smaller than table content (under 768px). It make use of overflow-y: hidden which clips off content that goes beyon the bottom or top edge
of the table.
|
<mdb-tbl responsive> |
reponsiveSm |
Boolean | false |
Makes table scrollable horizontally on under 576px wide screens. | <mdb-tbl responsiveSm> |
reponsiveMd |
Boolean | false |
Makes table scrollable horizontally on under 768px wide screens. | <mdb-tbl responsiveMd> |
reponsiveLg |
Boolean | false |
Makes table scrollable horizontally on under 992px wide screens. | <mdb-tbl responsiveLg> |
reponsiveXl |
Boolean | false |
Makes table scrollable horizontally on under 1200px wide screens. | <mdb-tbl responsiveXl> |
scrollY |
Boolean | false |
Allows table to be scrolled vertically if it's content is higher than 200px. Combine it with maxHeight to manipulate table's height. | <mdb-tbl scrollY> |
maxHeight |
String | 200px |
Sets table's maxHeight. You can use px, vh or whatever fits to your needs. | <mdb-tbl maxHeight="400px"> |
autoWidth |
Boolean | false |
Automatically adjust columns width to the content. | <mdb-tbl autoWidth> |
fixed |
Boolean | false |
Sets fixed columns width. | <mdb-tbl fixed> |
API Reference: mdbTblHead component
All properties and options refered to mdb-tbl-head
component.
Name | Type | Default | Description | Example |
---|---|---|---|---|
color |
String | Changes TableHead background color. Use MDB color classes | <mdb-tbl-head color="primary-color"> |
|
textWhite |
Boolean | false |
Sets TableHead's font color to white. | <mdb-tbl-head textWhite> |
columns |
Object[] | Binds your data into the component. | <mdb-tbl-head columns={this.state.columns}> |
|
.th- |
class | Sets the minimal width of the column (sm - 6rem, lg - 9rem). |
<mdb-tbl-head>
<tr>
<th class="th-sm">
Example
<th>
</tr>
</mdb-tbl-head>
|
API Reference: TableBody component
All properties and options refered to mdb-tbl-body
component.
Name | Type | Default | Description | Example |
---|---|---|---|---|
colSpan |
String | 1 |
Spans table cell to the given number of columns. |
<mdb-tbl-body>
<tr>
<td colspan="2">
Example
<td>
</tr>
</mdb-tbl-body>
|
API Reference: Additional Table elements
Name | Type | Default | Description | Example |
---|---|---|---|---|
<caption> |
Node | A <caption> functions like a heading for a table. It helps users with screen readers to
find a table and understand what it’s about and decide if they want to read it. |
<caption>Example caption</caption>
|