HtmlForgeX

API Reference

Enum

DataTablesCallbackEvalPolicy

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

Controls how (and whether) string callback values are revived into functions on the client.

Inheritance

  • Enum
  • DataTablesCallbackEvalPolicy

Values

public const DataTablesCallbackEvalPolicy Off #

Never evaluate callback strings. Safest default.

Value: 0
public const DataTablesCallbackEvalPolicy KnownSafeOnly #

Only allow revival for strings that look like function literals (function(...) { ... } or arrow functions) and that do not contain obviously dangerous tokens. Uses the Function constructor (no eval) under a guard.

Value: 1
public const DataTablesCallbackEvalPolicy AllowAll #

Allow all callback strings to be revived. Not recommended; use only in trusted environments.

Value: 2