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
This commit is contained in:
Doug Niccum
2016-10-19 21:45:58 +09:00
committed by Masahiro Wakame
parent 1556184ca6
commit cc428eea78
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -122,7 +122,7 @@ var sliderHtml = '<div class="slider">' +
$('.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 = '<div class="row">' +
// Transitions
Materialize.showStaggeredList('#staggered-test');
Materialize.updateTextFields();
Materialize.updateTextFields();
+3 -3
View File
@@ -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;
}
/**