@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
60 lines (59 loc) • 3.65 kB
TypeScript
import { textProperty } from '../text-base';
import { iosWritingToolsAllowedInputProperty, iosWritingToolsBehaviorProperty, TextViewBase as TextViewBaseCommon, WritingToolsAllowedInput, WritingToolsBehavior } from './text-view-common';
import { editableProperty, hintProperty, placeholderColorProperty } from '../editable-text-base';
import { CoreTypes } from '../../core-types';
import { Color } from '../../color';
import { colorProperty, borderTopWidthProperty, borderRightWidthProperty, borderBottomWidthProperty, borderLeftWidthProperty, paddingTopProperty, paddingRightProperty, paddingBottomProperty, paddingLeftProperty, directionProperty } from '../styling/style-properties';
export { WritingToolsAllowedInput, WritingToolsBehavior } from './text-view-common';
export declare class TextView extends TextViewBaseCommon {
[textProperty.getDefault]: () => string;
[textProperty.setNative]: (value: string) => void;
[directionProperty.setNative]: (value: CoreTypes.LayoutDirectionType) => void;
[hintProperty.getDefault]: () => string;
[hintProperty.setNative]: (value: string) => void;
[editableProperty.getDefault]: () => boolean;
[editableProperty.setNative]: (value: boolean) => void;
[colorProperty.setNative]: (color: Color) => void;
[placeholderColorProperty.setNative]: (value: Color) => void;
[borderTopWidthProperty.getDefault]: () => CoreTypes.LengthType;
[borderTopWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
[borderRightWidthProperty.getDefault]: () => CoreTypes.LengthType;
[borderRightWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
[borderBottomWidthProperty.getDefault]: () => CoreTypes.LengthType;
[borderBottomWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
[borderLeftWidthProperty.getDefault]: () => CoreTypes.LengthType;
[borderLeftWidthProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingTopProperty.getDefault]: () => CoreTypes.LengthType;
[paddingTopProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingRightProperty.getDefault]: () => CoreTypes.LengthType;
[paddingRightProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingBottomProperty.getDefault]: () => CoreTypes.LengthType;
[paddingBottomProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingLeftProperty.getDefault]: () => CoreTypes.LengthType;
[paddingLeftProperty.setNative]: (value: CoreTypes.LengthType) => void;
[iosWritingToolsBehaviorProperty.setNative]: (value: WritingToolsBehavior) => void;
[iosWritingToolsAllowedInputProperty.setNative]: (value: Array<WritingToolsAllowedInput>) => void;
nativeViewProtected: UITextView;
nativeTextViewProtected: UITextView;
private _delegate;
private _isShowingHint;
_isEditing: boolean;
private _hintColor;
private _textColor;
createNativeView(): UITextView;
initNativeView(): void;
disposeNativeView(): void;
get ios(): UITextView;
textViewShouldBeginEditing(textView: UITextView): boolean;
textViewDidBeginEditing(textView: UITextView): void;
textViewDidEndEditing(textView: UITextView): void;
textViewDidChange(textView: UITextView): void;
textViewShouldChangeTextInRangeReplacementText(textView: UITextView, range: NSRange, replacementString: string): boolean;
scrollViewDidScroll(sv: UIScrollView): void;
_refreshHintState(hint: string, text: string): void;
private _refreshColor;
showHint(hint: string): void;
showText(): void;
private _writingToolsBehaviorType;
private _writingToolsAllowedType;
}