mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
import { EditableTextBase } from '../editable-text-base';
|
|
import { Property } from '../core/properties';
|
|
export { WritingToolsAllowedInput, WritingToolsBehavior } from './text-view-common';
|
|
|
|
/**
|
|
* Represents an editable multiline text view.
|
|
*
|
|
* @nsView TextView
|
|
*/
|
|
export class TextView extends EditableTextBase {
|
|
/**
|
|
* String value used when hooking to the returnPress event.
|
|
*
|
|
* @nsEvent returnPress
|
|
*/
|
|
public static returnPressEvent: string;
|
|
|
|
/**
|
|
* Gets the native [android widget](http://developer.android.com/reference/android/widget/EditText.html) that represents the user interface for this component. Valid only when running on Android OS.
|
|
*/
|
|
android: any /* android.widget.EditText */;
|
|
|
|
/**
|
|
* Gets the native iOS [UITextView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextView_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
|
*/
|
|
ios: any /* UITextView */;
|
|
|
|
/**
|
|
* Limits input to a certain number of lines.
|
|
*
|
|
* @nsProperty
|
|
*/
|
|
maxLines: number;
|
|
|
|
/**
|
|
* (iOS Only) Are Apple Intelligence writing tools active
|
|
*/
|
|
isWritingToolsActive: boolean;
|
|
|
|
/**
|
|
* (iOS Only) Allow Apple Intelligence writing tools to emit text changes on each alteration instead of after the final change (default).
|
|
*/
|
|
enableWritingToolsEvents: boolean;
|
|
}
|
|
|
|
export const maxLinesProperty: Property<EditableTextBase, number>;
|