outsystems-ui - v3.0.0
    Preparing search index...

    Function SetDarkTheme

    • Enables or disables the dark theme at runtime by applying or removing the dark theme class on the document root. Use this for scenarios such as a dark/light theme toggle. The change takes effect immediately, without a page reload.

      Parameters

      • IsDark: boolean

        True to enable the dark theme, False to disable it.

      Returns string

      JSON string with Success and ErrorMessage, consistent with the other client actions.