import { QPlainTextEdit, QWidget, QPlainTextEditSignals } from "@nodegui/nodegui"; import { ViewProps } from "../View/RNView"; import { RNWidget } from "../config"; /** * The PlainTextEdit component provides ability to add and manipulate native editable text field widgets. It is based on * [NodeGui's QPlainTextEdit](https://docs.nodegui.org/docs/api/generated/classes/qplaintextedit/). * ## Example * ```javascript * import React from "react"; * import { Renderer, PlainTextEdit, Window } from "@nodegui/react-nodegui"; * * const plainTextRef = React.createRef(); * const App = () => { * React.useEffect(() => { * plainTextRef.current.addEventListener("textChanged", () => * console.log(plainTextRef.current.toPlainText()) * ); * }); * return ( * * * * ); * }; * Renderer.render(); * * ``` */ export interface PlainTextEditProps extends ViewProps { text?: string; readOnly?: boolean; placeholderText?: string; } /** * @ignore */ export declare class RNPlainTextEdit extends QPlainTextEdit implements RNWidget { setProps(newProps: PlainTextEditProps, oldProps: PlainTextEditProps): void; appendInitialChild(child: QWidget): void; appendChild(child: QWidget): void; insertBefore(child: QWidget, beforeChild: QWidget): void; removeChild(child: QWidget): void; static tagName: string; }