Skip to content

Commit

Permalink
feat(table): add borderless prop (#2300)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorehouse authored Dec 16, 2018
1 parent eb8b431 commit dabe150
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
23 changes: 14 additions & 9 deletions src/components/table/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ fields: [
| ---- | ---- | -----------
| `striped` | Boolean | Add zebra-striping to the table rows within the `<tbody>`
| `bordered` | Boolean | For borders on all sides of the table and cells.
| `borderless` | Boolean | removes inner borders from table.
| `outlined` | Boolean | For a thin border on all sides of the table. Has no effect if `bordered` is set.
| `small` | Boolean | To make tables more compact by cutting cell padding in half.
| `hover` | Boolean | To enable a hover highlighting state on table rows within a `<tbody>`
Expand All @@ -334,17 +335,20 @@ fields: [
```html
<template>
<div>
<b-form-checkbox inline v-model="striped">Striped</b-form-checkbox>
<b-form-checkbox inline v-model="bordered">Bordered</b-form-checkbox>
<b-form-checkbox inline v-model="outlined">Outlined</b-form-checkbox>
<b-form-checkbox inline v-model="small">Small</b-form-checkbox>
<b-form-checkbox inline v-model="hover">Hover</b-form-checkbox>
<b-form-checkbox inline v-model="dark">Dark</b-form-checkbox>
<b-form-checkbox inline v-model="fixed">Fixed</b-form-checkbox>
<b-form-checkbox inline v-model="footClone">Foot Clone</b-form-checkbox>

<b-form-group label="Table Options">
<b-form-checkbox inline v-model="striped">Striped</b-form-checkbox>
<b-form-checkbox inline v-model="bordered">Bordered</b-form-checkbox>
<b-form-checkbox inline v-model="borderless">Borderless</b-form-checkbox>
<b-form-checkbox inline v-model="outlined">Outlined</b-form-checkbox>
<b-form-checkbox inline v-model="small">Small</b-form-checkbox>
<b-form-checkbox inline v-model="hover">Hover</b-form-checkbox>
<b-form-checkbox inline v-model="dark">Dark</b-form-checkbox>
<b-form-checkbox inline v-model="fixed">Fixed</b-form-checkbox>
<b-form-checkbox inline v-model="footClone">Foot Clone</b-form-checkbox>
</b-form-group>
<b-table :striped="striped"
:bordered="bordered"
:borderless="borderless"
:outlined="outlined"
:small="small"
:hover="hover"
Expand All @@ -369,6 +373,7 @@ export default {
],
striped: false,
bordered: false,
borderless: false,
outlined: false,
small: false,
hover: false,
Expand Down
5 changes: 5 additions & 0 deletions src/components/table/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ export default {
type: Boolean,
default: false
},
borderless: {
type: Boolean,
default: false
},
outlined: {
type: Boolean,
default: false
Expand Down Expand Up @@ -378,6 +382,7 @@ export default {
'table-hover': this.hover,
'table-dark': this.dark,
'table-bordered': this.bordered,
'table-borderless': this.borderless,
'table-sm': this.small,
'border': this.outlined,
// The following are b-table custom styles
Expand Down

0 comments on commit dabe150

Please sign in to comment.