Skip to content

Commit 3d911ff

Browse files
author
Adrien Grsmto
committed
Update to v1.1.1
1 parent 540f539 commit 3d911ff

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ If you are using another plugins like jQuery.scrollTo or simply want to access t
9191

9292
$('#myElement').simplebar('getScrollElement');
9393

94+
###Add content dynamically (ajax)
95+
You can retrieve the element containing datas like this :
96+
97+
$('#myElement').simplebar('getContentElement');
98+
99+
This is best to use this rather than querying it via DOM cause it avoids problem when the plugin is disabled (like on mobiles).
100+
94101
###Non-JS fallback
95102

96103
SimpleBar hides the browser's default scrollbars, which obviously is undesirable if the user has JavaScript disabled. To restore the browser's scrollbars you can include the following `noscript` element in your document's `head`:

dist/simplebar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SimpleBar.js - v1.1.0
2+
* SimpleBar.js - v1.1.1
33
* Scrollbars, simpler.
44
* https://grsmto.github.io/simplebar/
55
*

dist/simplebar.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url" : "http://github.com/grsmto/simplebar.git"
99
},
1010
"homepage": "https://grsmto.github.io/simplebar/",
11-
"version": "1.1.0",
11+
"version": "1.1.1",
1212
"devDependencies": {
1313
"grunt": "~0.4.1",
1414
"grunt-cli": "~0.1.7",

0 commit comments

Comments
 (0)