API reference
Preparing search index…

NodeScriptHostOptions

Explicit policy for trusted JavaScript document execution.

interface NodeScriptHostOptions {
    allowExternal?: boolean;
    allowInline?: boolean;
    globals?: Readonly<Record<string, unknown>>;
    handlers?: Readonly<Record<string, ScriptHandler>>;
}
Source & inheritance
Member directory4

Properties

Properties

allowExternal?: boolean

Enable external scripts loaded through RmlUi's FileInterface.

Source & inheritance
allowInline?: boolean

Enable inline script tags and inline on* expressions; defaults to false.

Source & inheritance
globals?: Readonly<Record<string, unknown>>

Capture globals; document/context/event/element are reserved.

Source & inheritance
handlers?: Readonly<Record<string, ScriptHandler>>

Capture named handlers once; names work without enabling script sources.

Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0