extends ../../layouts/LayoutComponent include ../../mixins/components/Table append variables - var pageHeader = { title: 'Tables', description: `Documentation and examples for opt-in styling of tables with ${name}.`, url: `https://getbootstrap.com/docs/${bootstrapVersion}/content/tables/`, linkText: 'Tables on Bootstrap' } append content +PageHeader(pageHeader) .row.g-3.mb-3 .col-lg-6 +ComponentCard({ title: 'Basic Table', anchor: true, headerClass:'border-bottom', bodyClass:'pt-0', description:"Using the most basic table markup, here’s how .table based tables look in Bootstrap.", descriptionClass:'mt-2 mb-0' }) .table-responsive.scrollbar +Table({action:true}) .col-lg-6 +ComponentCard({ title: 'Striped', anchor: true, headerClass:'border-bottom', bodyClass:'pt-0', description:"Use .table-striped to add zebra-striping to any table row within the tbody.", descriptionClass:'mt-2 mb-0', }).z-1.h-100 .table-responsive.scrollbar +Table({action:true,actionType:'dropdown'}).table-striped.overflow-hidden .col-lg-6 +ComponentCard({ title: 'Dark', anchor: true, bodyClass:'pt-0', description:"Using the most basic table markup, here’s how .table-dark based tables look in Bootstrap.", descriptionClass:'mt-2 mb-0' }) +Table.table-dark .col-lg-6 +ComponentCard({ title: 'Hoverable Rows', anchor: true, headerClass:'border-bottom', bodyClass:'pt-0', }).h-100 .table-responsive.scrollbar +HoverTableExample({action:true}) .col-lg-6 +ComponentCard({ title: 'Bordered tables ', anchor: true, bodyClass:'pt-0', description:"Add .table-bordered for borders on all sides of the table and cells.", descriptionClass:'mt-2 mb-0' }) +Table({head:true}).table-bordered .col-lg-6 +ComponentCard({ title: 'Captions', anchor: true, headerClass:'border-bottom', bodyClass:'pt-0', }).h-100 +Table({caption:true}) .col-lg-6 +ComponentCard({ title: 'Small Tables', anchor: true, headerClass:'border-bottom', bodyClass:'pt-0', description:'Add .table-sm to make any .table more compact by cutting all cell padding in half.', descriptionClass:'mt-2 mb-0' }) +Smalltable.table-sm .col-lg-6 +ComponentCard({ title: 'Highlight Column', anchor: true, bodyClass:'pt-0', }).h-100 .table-responsive.scrollbar +Table({action:true,actionType:'dropdown',colgroup :true}).table-bordered.overflow-hidden .col-lg-6 +ComponentCard({ title: 'Active Table', anchor: true, bodyClass:'pt-0', description:'Highlight a table row or cell by adding a .table-active class.', descriptionClass:'mt-2 mb-0' }) .table-responsive.scrollbar +Activetable.table-bordered .col-lg-6 +ComponentCard({ title: 'Variants', anchor: true, headerClass:'border-bottom', bodyClass:'pt-0', description:'Use contextual classes to color tables, table rows or individual cells.', descriptionClass:'mt-2 mb-0' }).h-100 +Table({contextual: true}) +ComponentCard({ title:'Responsive Table', anchor:true, headerClass:'border-bottom', bodyClass:'pt-0', description:"Use .table-responsive for horizontally scrolling tables.And use .table-responsive{-sm|-md|-lg|-xl|-xxl} as needed to create responsive tables up to a particular breakpoint", descriptionClass:'mt-2 mb-0' }) .table-responsive.scrollbar +ResponsiveTableExample({action:true,actionType:'dropdown',activeCell:true}).table-striped.overflow-hidden