Merge pull request #9849 from chingyawhao/master

Added Materialize.updateTextFields();
This commit is contained in:
Mohamed Hegazy
2016-06-28 00:42:59 -07:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -238,3 +238,5 @@ var tabsHtml = '<div class="row">' +
// Transitions
Materialize.showStaggeredList('#staggered-test');
Materialize.updateTextFields();
+5
View File
@@ -319,6 +319,11 @@ declare namespace Materialize {
* @name selector the selector for the image to fade in
*/
fadeInImage(selector:string): void;
/**
* Update all text field to reinitialize all the Materialize labels on the page if dynamically adding inputs
*/
updateTextFields(): void;
}
}