Class AbpUtilsService
Inheritance
System.Object
AbpUtilsService
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Volo.Abp.AspNetCore.Components.WebAssembly.Theming
Assembly: Volo.Abp.AspNetCore.Components.WebAssembly.Theming.dll
Syntax
public class AbpUtilsService : IAbpUtilsService, ITransientDependency
Constructors
AbpUtilsService(IJSRuntime)
Declaration
public AbpUtilsService(IJSRuntime jsRuntime)
Parameters
| Type | Name | Description |
|---|---|---|
| IJSRuntime | jsRuntime |
Properties
JsRuntime
Declaration
protected IJSRuntime JsRuntime { get; }
Property Value
| Type | Description |
|---|---|
| IJSRuntime |
Methods
AddClassToTagAsync(String, String)
Declaration
public ValueTask AddClassToTagAsync(string tagName, string className)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tagName | |
| System.String | className |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.ValueTask |
HasClassOnTagAsync(String, String)
Declaration
public ValueTask<bool> HasClassOnTagAsync(string tagName, string className)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tagName | |
| System.String | className |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.ValueTask<System.Boolean> |
RemoveClassFromTagAsync(String, String)
Declaration
public ValueTask RemoveClassFromTagAsync(string tagName, string className)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tagName | |
| System.String | className |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.ValueTask |
ReplaceLinkHrefByIdAsync(String, String)
Declaration
public ValueTask ReplaceLinkHrefByIdAsync(string linkId, string hrefValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | linkId | |
| System.String | hrefValue |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.ValueTask |
Implements
ITransientDependency