Events
Last updated on
The local event and page channels of the panel module.
Client, local. Raised after the owner's callback for every action. Reaches only code inside opx_infinity's client VM.
AddEventHandler('opx:on:panel:action', function(payload) end)
All on the interactive surface; every payload carries the panel handle.
| Channel | Direction | Payload | Meaning |
|---|
panel:select | page → Lua | { handle, item } | Item clicked. |
panel:hover | page → Lua | { handle, item } | Pointer on an item. |
panel:leave | page → Lua | { handle } | Pointer left the items. |
panel:tab | page → Lua | { handle, tab } | Tab clicked. |
panel:slide | page → Lua | { handle, id, index, commit } | Slider moved. |
panel:tiles | page → Lua | { handle, slot, from } | Grid needs the next window. |
panel:action | page → Lua | { handle, id } | Button clicked. |
panel:answer | page → Lua | { handle, id, value } | Confirm dialog answered. |
panel:dismiss | page → Lua | { handle } | Escape on the page. Ignored while a dialog is up. |
focus:set | page → Lua | { owner, focus } | Shared; the panel answers for owners panel and panel.confirm. |
panel:open, panel:update, panel:items, panel:confirm, panel:close | Lua → page | the parsed view, a patch, { handle, items, done }, a dialog, { handle } | Drawing. |