mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(core): maxLines support for all text components (#9884)
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
import { TextView as TextViewDefinition } from '.';
|
||||
import { EditableTextBase } from '../editable-text-base';
|
||||
import { Property } from '../core/properties';
|
||||
|
||||
export class TextViewBase extends EditableTextBase implements TextViewDefinition {
|
||||
public static returnPressEvent = 'returnPress';
|
||||
public maxLines: number;
|
||||
}
|
||||
|
||||
export const maxLinesProperty = new Property<EditableTextBase, number>({
|
||||
name: 'maxLines',
|
||||
valueConverter: parseInt,
|
||||
});
|
||||
maxLinesProperty.register(EditableTextBase);
|
||||
}
|
||||
Reference in New Issue
Block a user