@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
32 lines (31 loc) • 1.92 kB
TypeScript
import { Label as LabelDefinition } from '.';
import { Background } from '../styling/background';
import { borderTopWidthProperty, borderRightWidthProperty, borderBottomWidthProperty, borderLeftWidthProperty, paddingTopProperty, paddingRightProperty, paddingBottomProperty, paddingLeftProperty, directionProperty } from '../styling/style-properties';
import { CoreTypes } from '../../core-types';
import { TextBase, whiteSpaceProperty, textOverflowProperty } from '../text-base';
export declare class Label extends TextBase implements LabelDefinition {
[whiteSpaceProperty.setNative]: (value: CoreTypes.WhiteSpaceType) => void;
[textOverflowProperty.setNative]: (value: CoreTypes.TextOverflowType) => void;
[directionProperty.setNative]: (value: CoreTypes.LayoutDirectionType) => void;
[borderTopWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
[borderRightWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
[borderBottomWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
[borderLeftWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingTopProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingRightProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingBottomProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingLeftProperty.setNative]: (value: CoreTypes.LengthType) => void;
nativeViewProtected: TNSLabel;
nativeTextViewProtected: TNSLabel;
private _fixedSize;
createNativeView(): TNSLabel;
disposeNativeView(): void;
get ios(): TNSLabel;
get textWrap(): boolean;
set textWrap(value: boolean);
_requestLayoutOnTextChanged(): void;
onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void;
private _measureNativeView;
private adjustLineBreak;
_redrawNativeBackground(value: UIColor | Background): void;
}