UNPKG

nativescript-autocomplete-x

Version:
29 lines (28 loc) 1.21 kB
import { Property, View, EventData } from 'tns-core-modules/ui/core/view'; export interface AutocompleteXEvent extends EventData { text: string; } export declare class AutocompleteXBase extends View { static openedEvent: string; static closedEvent: string; static selectedEvent: string; static textChangedEvent: string; editable: boolean; autocorrect: boolean; hint: string; maxLength: number; text: string; items: Array<string>; maxVisibleRows: number; constructor(); filteredItems(str: any): string[]; refresh(): void; } export declare const maxVisibleRowsProperty: Property<AutocompleteXBase, number>; export declare const textProperty: Property<AutocompleteXBase, string>; export declare const currentTextInResultsPrefixProperty: Property<AutocompleteXBase, string>; export declare const itemsProperty: Property<AutocompleteXBase, any[]>; export declare const editableProperty: Property<AutocompleteXBase, boolean>; export declare const autocorrectProperty: Property<AutocompleteXBase, boolean>; export declare const hintProperty: Property<AutocompleteXBase, string>; export declare const maxLengthProperty: Property<AutocompleteXBase, number>;