RNAction

Hierarchy

  • QAction

    ↳ RNAction

Implements

  • RNComponent

Index

Constructors

Properties

Methods

Constructors

constructor

+ new RNAction(): RNAction

Inherited from RNAction.constructor

Overrides void

Returns: RNAction

+ new RNAction(native: NativeElement): RNAction

Inherited from RNAction.constructor

Overrides void

Parameters:

NameType
nativeNativeElement

Returns: RNAction

+ new RNAction(parent: NodeWidget‹any›): RNAction

Inherited from RNAction.constructor

Overrides void

Parameters:

NameType
parentNodeWidget‹any›

Returns: RNAction

Properties

Optional icon

• icon? : QIcon

Inherited from RNAction.icon


Optional menu

• menu? : QMenu

Inherited from RNAction.menu


native

• native: NativeElement

Inherited from RNAction.native

Overrides void


nodeChildren

• nodeChildren: Set‹Component›

Inherited from RNAction.nodeChildren


Optional nodeParent

• nodeParent? : Component

Inherited from RNAction.nodeParent


Static tagName

â–ª tagName: string = "action"

Methods

addEventListener

▸ addEventListener‹SignalType›(signalType: SignalType, callback: QActionSignals[SignalType]): void

Inherited from RNAction.addEventListener

Type parameters:

â–ª SignalType: keyof QActionSignals

Parameters:

NameTypeDescription
signalTypeSignalTypeSignalType is a signal from the widgets signals interface.
callbackQActionSignals[SignalType]Corresponding callback for the signal as mentioned in the widget's signal interface

Returns: void

void

For example in the case of QPushButton:

const button = new QPushButton();
button.addEventListener('clicked',(checked)=>console.log("clicked"));
// here clicked is a value from QPushButtonSignals interface

â–¸ addEventListener(eventType: WidgetEventTypes, callback: function): void

Inherited from RNAction.addEventListener

Parameters:

â–ª eventType: WidgetEventTypes

â–ª callback: function

For example in the case of QPushButton:

const button = new QPushButton();
button.addEventListener(WidgetEventTypes.HoverEnter,()=>console.log("hovered"));

▸ (event?: NativeRawPointer‹"QEvent"›): void

Parameters:

NameType
event?NativeRawPointer‹"QEvent"›

Returns: void


appendChild

â–¸ appendChild(child: Component): void

Parameters:

NameType
childComponent

Returns: void


appendInitialChild

â–¸ appendInitialChild(child: Component): void

Parameters:

NameType
childComponent

Returns: void


font

â–¸ font(): QFont

Inherited from RNAction.font

Returns: QFont


inherits

â–¸ inherits(className: string): boolean

Inherited from RNAction.inherits

Parameters:

NameType
classNamestring

Returns: boolean


insertBefore

â–¸ insertBefore(child: Component, beforeChild: Component): void

Parameters:

NameType
childComponent
beforeChildComponent

Returns: void


isCheckable

â–¸ isCheckable(): boolean

Inherited from RNAction.isCheckable

Returns: boolean


isChecked

â–¸ isChecked(): boolean

Inherited from RNAction.isChecked

Returns: boolean


isSeparator

â–¸ isSeparator(): boolean

Inherited from RNAction.isSeparator

Returns: boolean


objectName

â–¸ objectName(): string

Inherited from RNAction.objectName

Returns: string


property

â–¸ property(name: string): QVariant

Inherited from RNAction.property

Parameters:

NameType
namestring

Returns: QVariant


removeChild

â–¸ removeChild(child: Component): void

Parameters:

NameType
childComponent

Returns: void


removeEventListener

▸ removeEventListener‹SignalType›(signalType: SignalType, callback: QActionSignals[SignalType]): void

Inherited from RNAction.removeEventListener

Type parameters:

â–ª SignalType: keyof QActionSignals

Parameters:

NameType
signalTypeSignalType
callbackQActionSignals[SignalType]

Returns: void

â–¸ removeEventListener(eventType: WidgetEventTypes, callback: function): void

Inherited from RNAction.removeEventListener

Parameters:

â–ª eventType: WidgetEventTypes

â–ª callback: function

▸ (event?: NativeRawPointer‹"QEvent"›): void

Parameters:

NameType
event?NativeRawPointer‹"QEvent"›

Returns: void


setCheckable

â–¸ setCheckable(isCheckable: boolean): void

Inherited from RNAction.setCheckable

Parameters:

NameType
isCheckableboolean

Returns: void


setChecked

â–¸ setChecked(isChecked: boolean): void

Inherited from RNAction.setChecked

Parameters:

NameType
isCheckedboolean

Returns: void


setEnabled

â–¸ setEnabled(enabled: boolean): void

Inherited from RNAction.setEnabled

Parameters:

NameType
enabledboolean

Returns: void


setFont

â–¸ setFont(font: QFont): void

Inherited from RNAction.setFont

Parameters:

NameType
fontQFont

Returns: void


setIcon

â–¸ setIcon(icon: QIcon): void

Inherited from RNAction.setIcon

Parameters:

NameType
iconQIcon

Returns: void


setMenu

â–¸ setMenu(menu: QMenu): void

Inherited from RNAction.setMenu

Parameters:

NameType
menuQMenu

Returns: void


setNodeParent

â–¸ setNodeParent(parent?: Component): void

Inherited from RNAction.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


setObjectName

â–¸ setObjectName(objectName: string): void

Inherited from RNAction.setObjectName

Parameters:

NameType
objectNamestring

Returns: void


setProperty

â–¸ setProperty(name: string, value: QVariantType): boolean

Inherited from RNAction.setProperty

Parameters:

NameType
namestring
valueQVariantType

Returns: boolean


setProps

â–¸ setProps(newProps: ActionProps, oldProps: ActionProps): void

Parameters:

NameType
newPropsActionProps
oldPropsActionProps

Returns: void


setSeparator

â–¸ setSeparator(isSeparator: boolean): void

Inherited from RNAction.setSeparator

Parameters:

NameType
isSeparatorboolean

Returns: void


setShortcut

â–¸ setShortcut(keysequence: QKeySequence): void

Inherited from RNAction.setShortcut

Parameters:

NameType
keysequenceQKeySequence

Returns: void


setShortcutContext

â–¸ setShortcutContext(shortcutContext: ShortcutContext): void

Inherited from RNAction.setShortcutContext

Parameters:

NameType
shortcutContextShortcutContext

Returns: void


setText

â–¸ setText(text: string): void

Inherited from RNAction.setText

Parameters:

NameType
textstring

Returns: void