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
public Task<bool> AddAsync( string fullUrl, bool minify = true, bool bundle = true, bool last = false, bool async = false, bool defer = false, object? HtmlAttributes = null );
fullUrl
The Url of the script file (starting with /).
minify
Defines whether the file needs to be minified.
bundle
Defines whether the file will be bundled (if bundling is enabled).
last
Defines whether the file will be added at the end of the current file list.
async
Defines whether async is added to the <script> tag.
defer
Defines whether defer is added to the <script> tag.
HtmlAttributes
(not specified)
See Also YetaWF.Core.Pages.ScriptManager ClassYetaWF.Core Overview
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com