From 76b5089589ffc7a3e49a1e89a13417d0e0c840fb Mon Sep 17 00:00:00 2001 From: Nathanael Anderson Date: Thu, 27 Jun 2019 09:14:44 -0500 Subject: [PATCH] fix: restore TextField.textChange and Switch.checkedChange event syntax in xml (#7403) --- .../ui/editable-text-base/editable-text-base-common.ts | 1 + tns-core-modules/ui/editable-text-base/editable-text-base.d.ts | 1 + tns-core-modules/ui/switch/switch-common.ts | 2 ++ tns-core-modules/ui/switch/switch.d.ts | 2 ++ 4 files changed, 6 insertions(+) diff --git a/tns-core-modules/ui/editable-text-base/editable-text-base-common.ts b/tns-core-modules/ui/editable-text-base/editable-text-base-common.ts index dfae60ab7..24937a733 100644 --- a/tns-core-modules/ui/editable-text-base/editable-text-base-common.ts +++ b/tns-core-modules/ui/editable-text-base/editable-text-base-common.ts @@ -6,6 +6,7 @@ export * from "../text-base"; export abstract class EditableTextBase extends TextBase implements EditableTextBaseDefinition { public static blurEvent = "blur"; public static focusEvent = "focus"; + public static textChangeEvent = "textChange"; public keyboardType: KeyboardType; public returnKeyType: ReturnKeyType; diff --git a/tns-core-modules/ui/editable-text-base/editable-text-base.d.ts b/tns-core-modules/ui/editable-text-base/editable-text-base.d.ts index b97795310..d91f43e5e 100644 --- a/tns-core-modules/ui/editable-text-base/editable-text-base.d.ts +++ b/tns-core-modules/ui/editable-text-base/editable-text-base.d.ts @@ -10,6 +10,7 @@ import { TextBase, Property, CssProperty, Style, Color, FormattedString } from " export class EditableTextBase extends TextBase { public static blurEvent: string; public static focusEvent: string; + public static textChangeEvent: string; /** * Gets or sets the soft keyboard type. diff --git a/tns-core-modules/ui/switch/switch-common.ts b/tns-core-modules/ui/switch/switch-common.ts index 77dccd012..995ec41b2 100644 --- a/tns-core-modules/ui/switch/switch-common.ts +++ b/tns-core-modules/ui/switch/switch-common.ts @@ -6,6 +6,8 @@ export * from "../core/view"; @CSSType("Switch") export class SwitchBase extends View implements SwitchDefinition { + public static checkedChangeEvent = "checkedChange"; + public checked: boolean; public offBackgroundColor: Color; diff --git a/tns-core-modules/ui/switch/switch.d.ts b/tns-core-modules/ui/switch/switch.d.ts index 9175af15e..a47d0eeaa 100644 --- a/tns-core-modules/ui/switch/switch.d.ts +++ b/tns-core-modules/ui/switch/switch.d.ts @@ -11,6 +11,8 @@ import { Color } from "../../color"; */ export class Switch extends View { + public static checkedChangeEvent: string; + /** * Gets the native [android widget](http://developer.android.com/reference/android/widget/Switch.html) that represents the user interface for this component. Valid only when running on Android OS. */