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
71 lines (16 loc) • 723 B
text/typescript
import { NO } from "./UIObject"
import { UITextField } from "./UITextField"
import { UITextView } from "./UITextView"
export class UITextArea extends UITextField {
constructor(elementID?: string, viewHTMLElement = null) {
super(elementID, viewHTMLElement, UITextView.type.textArea)
this.viewHTMLElement.removeAttribute("type")
this.style.overflow = "auto"
this.style.webkitUserSelect = "text"
this.pausesPointerEvents = NO
}
override get viewHTMLElement(): HTMLTextAreaElement & HTMLInputElement {
// @ts-ignore
return super.viewHTMLElement
}
}