@@ -10,7 +10,7 @@ public partial class ScriptLoader : BlazorBootstrapComponentBase
10
10
/// <summary>
11
11
/// The default content type for scripts.
12
12
/// </summary>
13
- private const string type = "text/javascript" ;
13
+ private const string ScriptType = "text/javascript" ;
14
14
15
15
/// <summary>
16
16
/// A reference to this component instance for use in JavaScript calls.
@@ -24,7 +24,7 @@ public partial class ScriptLoader : BlazorBootstrapComponentBase
24
24
protected override async Task OnAfterRenderAsync ( bool firstRender )
25
25
{
26
26
if ( firstRender )
27
- await JSRuntime . InvokeVoidAsync ( "window.blazorBootstrap.scriptLoader.initialize" , Id , Async , Defer , ScriptId , Source , type , objRef ) ;
27
+ await JSRuntime . InvokeVoidAsync ( "window.blazorBootstrap.scriptLoader.initialize" , Id , Async , Defer , ScriptId , Source , ScriptType , objRef ) ;
28
28
29
29
await base . OnAfterRenderAsync ( firstRender ) ;
30
30
}
@@ -72,13 +72,19 @@ public void OnLoadJS()
72
72
/// <summary>
73
73
/// Gets or sets a value indicating whether the script should be loaded asynchronously.
74
74
/// </summary>
75
+ /// <remarks>
76
+ /// Default value is <see langword="false" />.
77
+ /// </remarks>
75
78
[ Parameter ]
76
79
public bool Async { get ; set ; }
77
80
78
81
/// <summary>
79
82
/// Gets or sets a value indicating whether the script is meant to be executed
80
83
/// after the document has been parsed, but before firing DOMContentLoaded event..
81
84
/// </summary>
85
+ /// <remarks>
86
+ /// Default value is <see langword="false" />.
87
+ /// </remarks>
82
88
[ Parameter ]
83
89
public bool Defer { get ; set ; }
84
90
@@ -97,12 +103,18 @@ public void OnLoadJS()
97
103
/// <summary>
98
104
/// Gets or sets the ID of the script element.
99
105
/// </summary>
106
+ /// <remarks>
107
+ /// Default value is <see langword="null" />.
108
+ /// </remarks>
100
109
[ Parameter ]
101
110
public string ? ScriptId { get ; set ; }
102
111
103
112
/// <summary>
104
113
/// Gets or sets the URI of the external script to load.
105
114
/// </summary>
115
+ /// <remarks>
116
+ /// Default value is <see langword="null" />.
117
+ /// </remarks>
106
118
[ Parameter ]
107
119
[ EditorRequired ]
108
120
public string ? Source { get ; set ; } = default ! ;
0 commit comments