Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Pages.ScriptManager.AddScriptAsync Method

Adds a JavaScript file explicitly. This is rarely used because JavaScript files are automatically added for modules, templates, etc.

Class: YetaWF.Core.Pages.ScriptManager
Namespace: YetaWF.Core.Pages
Assembly: YetaWF.Core

Syntax

public Task AddScriptAsync(
    string areaName,
    string relativePath,
    int dummy = 0,
    bool Minify = true,
    bool Bundle = true,
    bool Async = false,
    bool Defer = false,
    object? HtmlAttributes = null );

Parameters

areaName

(not specified)

relativePath

(not specified)

dummy

(not specified)

Minify

(not specified)

Bundle

(not specified)

Async

(not specified)

Defer

(not specified)

HtmlAttributes

(not specified)

See Also YetaWF.Core.Pages.ScriptManager ClassYetaWF.Core Overview