神岛 API 文档 - ArenaPro版
    Preparing search index...

    Interface GUIBind<T>

    定义 GUI 事件绑定。

    Defines a GUI event binding.

    interface GUIBind<T extends string> {
        action: T;
        event: string;
        selector?: string;
    }

    Type Parameters

    • T extends string
    Index

    Properties

    action: T

    事件触发时要执行的操作。

    The action to perform when the event is triggered.

    event: string

    要绑定的事件名称(例如 'click')。

    The name of the event to bind (e.g., 'click').

    selector?: string

    用于目标元素的 CSS 选择器。

    The CSS selector for the target element.