mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
feat(textview): added maxLines property (#7943)
* 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>
This commit is contained in:
10
nativescript-core/ui/text-view/text-view-common.ts
Normal file
10
nativescript-core/ui/text-view/text-view-common.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { TextView as TextViewDefinition } from ".";
|
||||
import { EditableTextBase } from "../editable-text-base";
|
||||
import { Property } from "../text-base";
|
||||
|
||||
export class TextViewBase extends EditableTextBase implements TextViewDefinition {
|
||||
public maxLines: number;
|
||||
}
|
||||
|
||||
export const maxLinesProperty = new Property<EditableTextBase, number>({ name: "maxLines", valueConverter: parseInt });
|
||||
maxLinesProperty.register(EditableTextBase);
|
Reference in New Issue
Block a user