UNPKG

@nativescript/core

Version:

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

27 lines (26 loc) 1.06 kB
import { TextBaseCommon } from './text-base-common'; import { FormattedString } from './formatted-string'; import { CoreTypes } from '../../core-types'; export * from './text-base-common'; export interface TextTransformation { new (owner: TextBase): any; } export declare class TextBase extends TextBaseCommon { nativeViewProtected: org.nativescript.widgets.StyleableTextView; nativeTextViewProtected: org.nativescript.widgets.StyleableTextView; private _defaultTransformationMethod; private _paintFlags; private _minHeight; private _maxHeight; private _minLines; private _maxLines; private _tappable; private _defaultMovementMethod; initNativeView(): void; resetNativeView(): void; createFormattedTextNative(value: FormattedString): globalAndroid.text.SpannableStringBuilder; private adjustLineBreak; _setNativeText(reset?: boolean): void; _setTappableState(tappable: boolean): void; } export declare function getTransformedText(text: string, textTransform: CoreTypes.TextTransformType): string;