mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
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:
committed by
Masahiro Wakame
parent
1556184ca6
commit
cc428eea78
@@ -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();
|
||||
|
||||
Vendored
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user