Skip to content

Commit 04d6515

Browse files
committed
Merge pull request kenwheeler#498 from codonnell822/append-dots
add appendDots option
2 parents bd24d39 + fc3ea96 commit 04d6515

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ easing | string | 'linear' | animate() fallback easing
4949
fade | boolean | false | Enables fade
5050
arrows | boolean | true | Enable Next/Prev arrows
5151
appendArrows | string | $(element) | Change where the navigation arrows are attached (Selector, htmlString, Array, Element, jQuery object)
52+
appendDots | string | $(element) | Change where the navigation dots are attached (Selector, htmlString, Array, Element, jQuery object)
5253
prevArrow | string (html|jQuery selector) | object (DOM node|jQuery object) | <button type="button" class="slick-prev">Previous</button> | Allows you to select a node or customize the HTML for the "Previous" arrow.
5354
nextArrow | string (html|jQuery selector) | object (DOM node|jQuery object) | <button type="button" class="slick-next">Next</button> | Allows you to select a node or customize the HTML for the "Next" arrow.
5455
infinite | boolean | true | Infinite looping

slick/slick.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
_.defaults = {
4242
accessibility: true,
4343
appendArrows: $(element),
44+
appendDots: $(element),
4445
arrows: true,
4546
asNavFor: null,
4647
prevArrow: '<button type="button" data-role="none" class="slick-prev">Previous</button>',
@@ -410,7 +411,7 @@
410411
dotString += '</ul>';
411412

412413
_.$dots = $(dotString).appendTo(
413-
_.$slider);
414+
_.options.appendDots);
414415

415416
_.$dots.find('li').first().addClass(
416417
'slick-active');
@@ -588,7 +589,7 @@
588589
_.$list.off('.slick');
589590
$(window).off('.slick-' + _.instanceUid);
590591
$(document).off('.slick-' + _.instanceUid);
591-
592+
592593
};
593594

594595
Slick.prototype.disableTransition = function(slide) {

0 commit comments

Comments
 (0)