UNPKG

uicore-ts

Version:

UICore is a library to build native-like user interfaces using pure Typescript. No HTML is needed at all. Components are described as TS classes and all user interactions are handled explicitly. This library is strongly inspired by the UIKit framework tha

47 lines (46 loc) 2 kB
import { ValueOf } from "./UIObject"; import { UITextView } from "./UITextView"; import { UIView, UIViewAddControlEventTargetObject, UIViewBroadcastEvent } from "./UIView"; export declare class UITextField extends UITextView { _placeholderTextKey?: string; _defaultPlaceholderText?: string; _viewHTMLElement: HTMLInputElement; constructor(elementID?: string, viewHTMLElement?: null, type?: string | ValueOf<typeof UITextView.type>); static controlEvent: { readonly PointerDown: "PointerDown"; readonly PointerMove: "PointerMove"; readonly PointerDrag: "PointerDrag"; readonly PointerLeave: "PointerLeave"; readonly PointerEnter: "PointerEnter"; readonly PointerUpInside: "PointerUpInside"; readonly PointerTap: "PointerTap"; readonly PointerUp: "PointerUp"; readonly MultipleTouches: "PointerZoom"; readonly PointerCancel: "PointerCancel"; readonly PointerHover: "PointerHover"; readonly EnterDown: "EnterDown"; readonly EnterUp: "EnterUp"; readonly EscDown: "EscDown"; readonly TabDown: "TabDown"; readonly LeftArrowDown: "LeftArrowDown"; readonly RightArrowDown: "RightArrowDown"; readonly DownArrowDown: "DownArrowDown"; readonly UpArrowDown: "UpArrowDown"; readonly Focus: "Focus"; readonly Blur: "Blur"; } & { TextChange: string; }; get controlEventTargetAccumulator(): UIViewAddControlEventTargetObject<typeof UITextField>; get viewHTMLElement(): HTMLInputElement; set text(text: string); get text(): string; set placeholderText(text: string); get placeholderText(): string; setPlaceholderText(key: string, defaultString: string): void; didReceiveBroadcastEvent(event: UIViewBroadcastEvent): void; willMoveToSuperview(superview: UIView): void; _setPlaceholderFromKeyIfPossible(): void; get isSecure(): boolean; set isSecure(secure: boolean); }