Skip to main content

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
TypeName
IJSRuntimejs
System.Object[]args

ConsoleLog(IJSRuntime, Object[])

View Source
Declaration
public static async Task ConsoleLog(this IJSRuntime js, params object[] args)
Returns

Task

Parameters
TypeName
IJSRuntimejs
System.Object[]args

SetTitle(IJSInProcessRuntime, String)

View Source
Declaration
public static void SetTitle(this IJSInProcessRuntime js, string title)
Parameters
TypeName
IJSInProcessRuntimejs
System.Stringtitle

SetTitleAsync(IJSRuntime, String)

View Source
Declaration
public static async Task SetTitleAsync(this IJSRuntime js, string title)
Returns

Task

Parameters
TypeName
IJSRuntimejs
System.Stringtitle

GetNavItemsAsync(IJSRuntime, String)

View Source
Declaration
public static async Task<List<NavItem>> GetNavItemsAsync(this IJSRuntime js, string name)
Returns

Task<List<NavItem>>

Parameters
TypeName
IJSRuntimejs
System.Stringname

ParseNavItemsCsv(String)

View Source
Declaration
public static List<NavItem> ParseNavItemsCsv(string csv)
Returns

List<NavItem>

Parameters
TypeName
System.Stringcsv

OpenAsync(IJSRuntime, String, String)

View Source
Declaration
public static async Task OpenAsync(this IJSRuntime js, string url, string target = null)
Returns

Task

Parameters
TypeName
IJSRuntimejs
System.Stringurl
System.Stringtarget