@nodegui/svelte-nodegui
Version:
Svelte integration for NodeGUI
29 lines (28 loc) • 1.33 kB
TypeScript
import { QObject, QObjectSignals, Component } from "@nodegui/nodegui";
import { RNComponent, RNProps } from "../react-nodegui/src/components/config";
export interface ObjectProps extends RNProps {
/**
* Sets the object name (id) of the widget in Qt. Object name can be analogous to id of an element in the web world. Using the objectName of the widget one can reference it in the Qt's stylesheet much like what we do with id in the web world. [QWidget: setObjectName](https://docs.nodegui.org/docs/api/NodeWidget#widgetsetobjectnameobjectname)
*/
id?: string;
/**
* Prop to set the event listener map. See [Handlong Events](/docs/guides/handle-events)
*/
on?: Partial<QObjectSignals>;
textContent?: string;
}
/**
* @see https://docs.nodegui.org/docs/api/generated/classes/qobject/
*/
export declare class RNObject extends QObject implements RNComponent {
get id(): string;
get textContent(): string;
set textContent(t: string);
setProps(newProps: ObjectProps, oldProps: ObjectProps): void;
appendInitialChild(child: Component): void;
appendChild(child: Component): void;
insertBefore(child: Component, beforeChild: Component): void;
removeChild(child: Component): void;
static tagName: string;
toString(): string;
}