From eb821bbef5de5b1b50593412afdab382bea7c7ca Mon Sep 17 00:00:00 2001 From: Ching Yaw Hao Date: Tue, 28 Jun 2016 12:04:37 +0800 Subject: [PATCH 1/3] Added updateTextFields() to materialize css --- materialize-css/materialize-css.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/materialize-css/materialize-css.d.ts b/materialize-css/materialize-css.d.ts index 3459772c5f..34f32bb8e0 100644 --- a/materialize-css/materialize-css.d.ts +++ b/materialize-css/materialize-css.d.ts @@ -89,7 +89,7 @@ declare namespace Materialize { * Default: 400 */ height?: number; - +https://github.com/chingyawhao/DefinitelyTyped.git /** * Set the duration of the transition animation in ms. * Default: 500 @@ -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; } } From 9f1ac3ded926339e3e49074b159888c7c09a272f Mon Sep 17 00:00:00 2001 From: Ching Yaw Hao Date: Tue, 28 Jun 2016 12:09:06 +0800 Subject: [PATCH 2/3] Delete accidentally copied text --- materialize-css/materialize-css.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/materialize-css/materialize-css.d.ts b/materialize-css/materialize-css.d.ts index 34f32bb8e0..b5b0f2c913 100644 --- a/materialize-css/materialize-css.d.ts +++ b/materialize-css/materialize-css.d.ts @@ -89,7 +89,7 @@ declare namespace Materialize { * Default: 400 */ height?: number; -https://github.com/chingyawhao/DefinitelyTyped.git + /** * Set the duration of the transition animation in ms. * Default: 500 From 94d01eab1634a62e4b3a6536d1ecc276352dd9dd Mon Sep 17 00:00:00 2001 From: Ching Yaw Hao Date: Tue, 28 Jun 2016 12:13:03 +0800 Subject: [PATCH 3/3] Added a line of test --- materialize-css/materialize-css-tests.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/materialize-css/materialize-css-tests.ts b/materialize-css/materialize-css-tests.ts index a17e9128ae..9c9027a972 100644 --- a/materialize-css/materialize-css-tests.ts +++ b/materialize-css/materialize-css-tests.ts @@ -238,3 +238,5 @@ var tabsHtml = '
' + // Transitions Materialize.showStaggeredList('#staggered-test'); + +Materialize.updateTextFields(); \ No newline at end of file