mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
13 lines
418 B
TypeScript
13 lines
418 B
TypeScript
import definition = require("ui/label");
|
|
import textBase = require("ui/text-base");
|
|
import {WhiteSpace} from "ui/enums";
|
|
|
|
export class Label extends textBase.TextBase implements definition.Label {
|
|
|
|
get textWrap(): boolean {
|
|
return this.style.whiteSpace === WhiteSpace.normal;
|
|
}
|
|
set textWrap(value: boolean) {
|
|
this.style.whiteSpace = value ? WhiteSpace.normal : WhiteSpace.nowrap;
|
|
}
|
|
} |