Skip to content

Commit cad7d98

Browse files
authored
Merge pull request #44 from mikejacobson/fix-readme
Update README with bootstrapVersion requirement
2 parents 3c3a441 + 85e7035 commit cad7d98

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,16 @@ $('.nav-tabs').scrollingTabs();
9393
```
9494

9595

96+
##### Bootstrap 4 Support
97+
98+
If you're using Bootstrap 4, you need to pass in option `bootstrapVersion: 4` (the default is `3`):
99+
```javascript
100+
$('.nav-tabs').scrollingTabs({
101+
bootstrapVersion: 4
102+
});
103+
```
104+
Bootstrap 4 handles some things differently than 3 (e.g., the `active` class gets applied to the tab's `li > a` element rather than the `li` itself)
105+
96106
##### reverseScroll Option
97107

98108
You can also pass in the `reverseScroll` option:

0 commit comments

Comments
 (0)