JsUtils
Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public static class JsUtils
Methods
Log(IJSRuntime, Object[])
View Source
Declaration
public static async Task Log(this IJSRuntime js, params object[] args)
Returns
Task
Parameters
Type | Name |
---|---|
IJSRuntime | js |
System.Object[] | args |
ConsoleLog(IJSRuntime, Object[])
View Source
Declaration
public static async Task ConsoleLog(this IJSRuntime js, params object[] args)
Returns
Task
Parameters
Type | Name |
---|---|
IJSRuntime | js |
System.Object[] | args |
SetTitle(IJSInProcessRuntime, String)
View Source
Declaration
public static void SetTitle(this IJSInProcessRuntime js, string title)
Parameters
Type | Name |
---|---|
IJSInProcessRuntime | js |
System.String | title |
SetTitleAsync(IJSRuntime, String)
View Source
Declaration
public static async Task SetTitleAsync(this IJSRuntime js, string title)
Returns
Task
Parameters
Type | Name |
---|---|
IJSRuntime | js |
System.String | title |
GetNavItemsAsync(IJSRuntime, String)
View Source
Declaration
public static async Task<List<NavItem>> GetNavItemsAsync(this IJSRuntime js, string name)
Returns
Task<List<NavItem>>
Parameters
Type | Name |
---|---|
IJSRuntime | js |
System.String | name |
ParseNavItemsCsv(String)
View Source
Declaration
public static List<NavItem> ParseNavItemsCsv(string csv)
Returns
List<NavItem>
Parameters
Type | Name |
---|---|
System.String | csv |
OpenAsync(IJSRuntime, String, String)
View Source
Declaration
public static async Task OpenAsync(this IJSRuntime js, string url, string target = null)
Returns
Task
Parameters
Type | Name |
---|---|
IJSRuntime | js |
System.String | url |
System.String | target |