mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00

* feat(textview): added maxLines property * feat(text-view): moved implementation to TextView * feat(text-view): changes based on CR * feat(text-view): Normalize behavior in between android and iOS * chore: updated NativeScript.api.md * chore: add new line before return Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com> Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
30 lines
1021 B
TypeScript
30 lines
1021 B
TypeScript
/**
|
|
* Contains the TextView class, which represents an editable multi-line line box.
|
|
* @module "ui/text-view"
|
|
*/ /** */
|
|
|
|
import { EditableTextBase } from "../editable-text-base";
|
|
import { Property } from "../text-base";
|
|
|
|
/**
|
|
* Represents an editable multiline text view.
|
|
*/
|
|
export class TextView extends EditableTextBase {
|
|
/**
|
|
* 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.
|
|
*/
|
|
maxLines: number;
|
|
}
|
|
|
|
export const maxLinesProperty: Property<EditableTextBase, number>;
|