From cc428eea786400e4de5a43eef35dc25d7864309c Mon Sep 17 00:00:00 2001 From: Doug Niccum Date: Wed, 19 Oct 2016 07:45:58 -0500 Subject: [PATCH] Fixes Materialize carousel option attribute type. (#12049) * Changes the attribute type for the full width slider * Updates the test with the new full_width attribute definition --- materialize-css/materialize-css-tests.ts | 4 ++-- materialize-css/materialize-css.d.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/materialize-css/materialize-css-tests.ts b/materialize-css/materialize-css-tests.ts index 9c9027a972..d9ae8170da 100644 --- a/materialize-css/materialize-css-tests.ts +++ b/materialize-css/materialize-css-tests.ts @@ -122,7 +122,7 @@ var sliderHtml = '
' + $('.carousel').carousel(); $('.carousel').carousel({}); -$('.carousel').carousel({ time_constant: 200, dist: -100, shift: 500, padding: 6000, full_width: 6000 }); +$('.carousel').carousel({ time_constant: 200, dist: -100, shift: 500, padding: 6000, full_width: true }); // Next slide $('.carousel').carousel('next'); @@ -239,4 +239,4 @@ var tabsHtml = '
' + // Transitions Materialize.showStaggeredList('#staggered-test'); -Materialize.updateTextFields(); \ No newline at end of file +Materialize.updateTextFields(); diff --git a/materialize-css/materialize-css.d.ts b/materialize-css/materialize-css.d.ts index 456abea871..2968176ff0 100644 --- a/materialize-css/materialize-css.d.ts +++ b/materialize-css/materialize-css.d.ts @@ -132,10 +132,10 @@ declare namespace Materialize { padding?: number; /** - * Set the duration between transitions in ms. - * Default: 6000 + * Set the width of the carousel. + * Default: false */ - full_width?: number; + full_width?: boolean; } /**