mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
26 lines
916 B
TypeScript
26 lines
916 B
TypeScript
/**
|
|
* Contains the Label class, which represents a standard label widget.
|
|
*/
|
|
declare module "ui/label" {
|
|
import { TextBase } from "ui/text-base";
|
|
|
|
/**
|
|
* Represents a text label.
|
|
*/
|
|
export class Label extends TextBase {
|
|
/**
|
|
* Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS.
|
|
*/
|
|
android: any /* android.widget.TextView */;
|
|
|
|
/**
|
|
* Gets the native [UILabel](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
|
*/
|
|
ios: any /* UILabel */;
|
|
|
|
/**
|
|
* Gets or sets whether the Label wraps text or not.
|
|
*/
|
|
textWrap: boolean;
|
|
}
|
|
} |