From 480ba2b8f3b16f8600d244e7a265a6be4eb1ecd6 Mon Sep 17 00:00:00 2001 From: mreis1 Date: Fri, 14 Oct 2016 16:02:00 +0200 Subject: [PATCH 1/2] Update slick-carousel.d.ts --- slick-carousel/slick-carousel.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slick-carousel/slick-carousel.d.ts b/slick-carousel/slick-carousel.d.ts index 7d79293330..7d5ab41788 100644 --- a/slick-carousel/slick-carousel.d.ts +++ b/slick-carousel/slick-carousel.d.ts @@ -45,9 +45,10 @@ interface JQuerySlickOptions { /** * Change where the navigation arrows are attached (Selector, htmlString, Array, Element, jQuery object) + * `false` will prevent arrows from being created/appended * Default: $(element) */ - appendArrows?: Element | Element[] | JQuery | string; + appendArrows?: Element | Element[] | JQuery | string | boolean; /** * Change where the navigation dots are attached (Selector, htmlString, Array, Element, jQuery object) From 688d43fc9e4ad5dd4ab767087d86df9b6ad89f93 Mon Sep 17 00:00:00 2001 From: mreis1 Date: Wed, 19 Oct 2016 01:10:36 +0200 Subject: [PATCH 2/2] Adds test for boolean property `appendArrows` --- slick-carousel/slick-carousel-tests.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slick-carousel/slick-carousel-tests.ts b/slick-carousel/slick-carousel-tests.ts index 761da66d9d..0c8bc8a925 100644 --- a/slick-carousel/slick-carousel-tests.ts +++ b/slick-carousel/slick-carousel-tests.ts @@ -177,7 +177,9 @@ $('.single-item-rtl').slick({ rtl: true }); - +$('.no-arrows-slide').slick({ + appendArrows: false +}) // -------------------------------------------------------- // ---------------- TEST DEFAULT OPTIONS ------------------