UNPKG

@dark-engine/platform-desktop

Version:

Dark renderer to desktop platforms like Windows, Linux, macOS via Nodegui and Qt

23 lines (22 loc) 760 B
import { QLineEdit, EchoMode, type QLineEditSignals } from '@nodegui/nodegui'; import { type ComponentFactory, type Ref } from '@dark-engine/core'; import type { WidgetProps, WithStandardProps } from '../shared'; export type LineEditProps = WithStandardProps< { ref?: Ref<LineEditRef>; text?: string; placeholder?: string; inputMask?: string; readOnly?: boolean; echoMode?: EchoMode; maxLength?: number; clearButtonEnabled?: boolean; } & WidgetProps >; export type LineEditRef = QDarkLineEdit; export type LineEditSignals = QLineEditSignals; declare const LineEdit: ComponentFactory<LineEditProps>; declare class QDarkLineEdit extends QLineEdit { setPlaceholder(value: string): void; } export { LineEdit, QDarkLineEdit };