UNPKG

@nativescript/core

Version:

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

21 lines (20 loc) 1.72 kB
import { EditableTextBase as EditableTextBaseCommon, autofillTypeProperty, keyboardTypeProperty, returnKeyTypeProperty, autocapitalizationTypeProperty, autocorrectProperty } from './editable-text-base-common'; import { FormattedString } from '../text-base/formatted-string'; import { CoreTypes } from '../../core-types'; export * from './editable-text-base-common'; export declare abstract class EditableTextBase extends EditableTextBaseCommon { [keyboardTypeProperty.getDefault]: () => "datetime" | "phone" | "number" | "url" | "email" | "integer" | string; [keyboardTypeProperty.setNative]: (value: "datetime" | "phone" | "number" | "decimal" | "url" | "email" | "integer" | string) => void; [autofillTypeProperty.setNative]: (value: CoreTypes.AutofillType) => void; [returnKeyTypeProperty.getDefault]: () => "done" | "next" | "go" | "search" | "send" | string; [returnKeyTypeProperty.setNative]: (value: "done" | "next" | "go" | "search" | "send" | string) => void; [autocapitalizationTypeProperty.getDefault]: () => "none" | "words" | "sentences" | "allcharacters"; [autocapitalizationTypeProperty.setNative]: (value: "none" | "words" | "sentences" | "allcharacters") => void; [autocorrectProperty.getDefault]: () => boolean | number; [autocorrectProperty.setNative]: (value: boolean | number) => void; nativeViewProtected: UITextField | UITextView; readonly nativeTextViewProtected: UITextField | UITextView; dismissSoftInput(): void; setSelection(start: number, stop?: number): void; } export declare function _updateCharactersInRangeReplacementString(formattedText: FormattedString, rangeLocation: number, rangeLength: number, replacementString: string): void;