> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qomicex.top/llms.txt
> Use this file to discover all available pages before exploring further.

# Node events

## Node events

Every visual node supports `<Node.Actions>`; controls no longer need their own event attributes.

```xml theme={null}
<Image Src="{Data.Cover.Url}" W="320" H="180">
  <Image.Actions>
    <OnClick Function="OpenCover" />
    <OnMouseOut Function="ResetZoom" />
  </Image.Actions>
</Image>
```

You can also use the explicit `Action` form:

```xml theme={null}
<Text Value="Refresh">
  <Text.Actions>
    <Action Event="Click" Function="Refresh" />
  </Text.Actions>
</Text>
```

## Events

| Element / Event | When it fires |
| :- | :- |
| `OnClick` / `Click` | Click |
| `OnDoubleClick` / `DoubleClick` | Double click |
| `OnMouseDown` / `MouseDown` | Pointer down |
| `OnMouseUp` / `MouseUp` | Pointer up |
| `OnMouseOver` / `MouseOver` | Pointer enters the node |
| `OnMouseOut` / `MouseOut` | Pointer leaves the node |
| `OnKeyboardDown` / `KeyboardDown` | Key down while the node or a descendant is focused |
| `OnKeyboardUp` / `KeyboardUp` | Key up while the node or a descendant is focused |
| `OnContextMenu` / `ContextMenu` | Context menu |
| `OnLoaded` / `Loaded` | Once after the node mounts |

## Function or Action

Each event uses one of them:

```xml theme={null}
<OnClick Function="OpenCover" Arguments='{"id":"{Data.Cover.Id}"}' />
<OnClick Action="OpenUrl" Url="{Data.Cover.Url}" />
```

* `Function`: calls a widget function; `Arguments` is optional
* `Action`: uses the same action arguments as Button/Trigger
* Event actions are included in the remote executable fingerprint. New or changed dangerous actions still require confirmation.

## Relationship to built-in events

* Button `OnClick` and input `OnChange` still work
* `<Node.Actions>` is an additional event layer; both run when declared
* `Loaded` runs once per node instance and again after remounting

## Limits

* Keyboard events require the node itself or a focusable descendant
* `MouseOver` / `MouseOut` fire when entering or leaving the node; moving between descendants does not repeat them
* `ContextMenu` prevents the default menu when an action exists
* Events do not change layout; use a Function or Action for animation/property changes


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.