FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: restore TextField.textChange and Switch.checkedChange event synt… · NativeScript/NativeScript@76b5089 · GitHub

Commit 76b5089

Browse files
authored andcommitted
fix: restore TextField.textChange and Switch.checkedChange event syntax in xml (#7403)
1 parent c2656a4 commit 76b5089

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎tns-core-modules/ui/editable-text-base/editable-text-base-common.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export * from "../text-base";
66
export abstract class EditableTextBase extends TextBase implements EditableTextBaseDefinition {
77
public static blurEvent = "blur";
88
public static focusEvent = "focus";
9+
public static textChangeEvent = "textChange";
910

1011
public keyboardType: KeyboardType;
1112
public returnKeyType: ReturnKeyType;

‎tns-core-modules/ui/editable-text-base/editable-text-base.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { TextBase, Property, CssProperty, Style, Color, FormattedString } from "
1010
export class EditableTextBase extends TextBase {
1111
public static blurEvent: string;
1212
public static focusEvent: string;
13+
public static textChangeEvent: string;
1314

1415
/**
1516
* Gets or sets the soft keyboard type.

‎tns-core-modules/ui/switch/switch-common.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export * from "../core/view";
66

77
@CSSType("Switch")
88
export class SwitchBase extends View implements SwitchDefinition {
9+
public static checkedChangeEvent = "checkedChange";
10+
911
public checked: boolean;
1012
public offBackgroundColor: Color;
1113

‎tns-core-modules/ui/switch/switch.d.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import { Color } from "../../color";
1111
*/
1212
export class Switch extends View {
1313

14+
public static checkedChangeEvent: string;
15+
1416
/**
1517
* 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.
1618
*/

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL