UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

29 lines (28 loc) 1.62 kB
import { Label as LabelDefinition } from '.'; import { Background } from '../styling/background'; import { borderTopWidthProperty, borderRightWidthProperty, borderBottomWidthProperty, borderLeftWidthProperty, directionProperty, paddingInternalProperty } 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; [paddingInternalProperty.setNative]: (_value: string) => 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; }