tshtml
    Preparing search index...

    Interface TemplateValue

    Interface for objects that can render themselves as HTML strings. Used for dynamic values like CSS classes, JavaScript expressions, and custom template values.

    TemplateValue

    interface TemplateValue {
        render(isAttributeValue: boolean): string;
    }

    Implemented by

    Index

    Methods

    Methods

    • Renders this value as an HTML string.

      Parameters

      • isAttributeValue: boolean

        Whether this value is being rendered as an HTML attribute value. This affects how the value should be escaped and formatted.

      Returns string

      The rendered HTML string representation of this value