mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00

* feat(ios): textfield option to disable autofill strong password handling * chore: api change report
22 lines
967 B
TypeScript
22 lines
967 B
TypeScript
import { TextField as TextFieldDefinition } from ".";
|
|
import { EditableTextBase, Property, booleanConverter, CSSType } from "../editable-text-base";
|
|
|
|
export * from "../editable-text-base";
|
|
|
|
@CSSType("TextField")
|
|
export class TextFieldBase extends EditableTextBase implements TextFieldDefinition {
|
|
public static returnPressEvent = "returnPress";
|
|
public secure: boolean;
|
|
public closeOnReturn: boolean;
|
|
// iOS only (to avoid 12+ suggested strong password handling)
|
|
public secureWithoutAutofill: boolean;
|
|
}
|
|
|
|
TextFieldBase.prototype.recycleNativeView = "auto";
|
|
|
|
export const secureProperty = new Property<TextFieldBase, boolean>({ name: "secure", defaultValue: false, valueConverter: booleanConverter });
|
|
secureProperty.register(TextFieldBase);
|
|
|
|
export const closeOnReturnProperty = new Property<TextFieldBase, boolean>({ name: "closeOnReturn", defaultValue: true, valueConverter: booleanConverter });
|
|
closeOnReturnProperty.register(TextFieldBase);
|