mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
fix: restore TextField.textChange and Switch.checkedChange event syntax in xml (#7403)
This commit is contained in:

committed by
Manol Donev

parent
c2656a4be4
commit
76b5089589
@ -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;
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
2
tns-core-modules/ui/switch/switch.d.ts
vendored
2
tns-core-modules/ui/switch/switch.d.ts
vendored
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user