# Tables
All Boostrap classes for tables are supported and improved. Besides the simple and striped tables, we added tables that have actions and tables with switches. We also combine Element-UI tables to achieve highly customizable tables that can suit any needs. You can see some code samples below:
To use the table component, import it
import {Table, TableColumn} from 'element-ui'
1
Global usage
Vue.use(Table)
Vue.use(TableColumn)
1
2
2
For local usage
export default {
components: {
[Table.name]: Table,
[TableColumn.name]: TableColumn
}
}
1
2
3
4
5
6
2
3
4
5
6
# Table with actions
Name | Job Position | Salary | Actions |
---|
1 | Andrew Mike | Develop | € 99,225 | |
2 | John Doe | Design | € 89,241 | |
3 | Alex Mike | Design | € 92,144 | |
4 | Mike Monday | Marketing | € 49,990 | |
5 | Paul dickens | Communication | € 69,201 |
# Table with switches
Name | Job Position | Salary | Active |
---|
1 | Andrew Mike | Develop | € 99,225 | |
2 | John Doe | Design | € 89,241 | |
3 | Alex Mike | Design | € 92,144 | |
4 | Mike Monday | Marketing | € 49,990 | |
5 | Paul dickens | Communication | € 69,201 |
# Shopping table
Product | Color | Size | Price | Quantity | Amount |
---|
![]() | Suede Biker Jacket by Saint Laurent | Black | M | € 3390 |
1
| € 3390 | |
![]() | Jersey T-Shirt by Balmain | Black | M | € 499 |
2
| € 998 | |
![]() | Slim-Fit Swim Short by Prada | Red | M | € 200 |
1
| € 200 |
For props, slots & events, please check element ui docs