Class Interop
- Namespace
- Oqtane.UI
- Assembly
- Oqtane.Client.dll
- Inheritance
-
Interop
Constructors
Interop(IJSRuntime)
public Interop(IJSRuntime jsRuntime)
Parameters
jsRuntime
IJSRuntime
Methods
public ValueTask<bool> FormValid(ElementReference form)
Parameters
form
ElementReference
Returns
- ValueTask<bool>
GetCaretPosition(string)
public ValueTask<int> GetCaretPosition(string id)
Parameters
id
string
Returns
- ValueTask<int>
GetCookie(string)
public ValueTask<string> GetCookie(string name)
Parameters
name
string
Returns
- ValueTask<string>
GetElementByName(string)
public ValueTask<string> GetElementByName(string name)
Parameters
name
string
Returns
- ValueTask<string>
GetFiles(string)
public ValueTask<string[]> GetFiles(string id)
Parameters
id
string
Returns
- ValueTask<string[]>
GetIndexedDBItem<T>(string)
public Task<T> GetIndexedDBItem<T>(string key)
Parameters
key
string
Returns
- Task<T>
Type Parameters
T
GetIndexedDBKeys()
public Task<List<string>> GetIndexedDBKeys()
Returns
- Task<List<string>>
GetIndexedDBKeys(string)
public Task<List<string>> GetIndexedDBKeys(string contains)
Parameters
contains
string
Returns
- Task<List<string>>
IncludeLink(string, string, string, string, string, string, string)
public Task IncludeLink(string id, string rel, string href, string type, string integrity, string crossorigin, string includebefore)
Parameters
id
string
rel
string
href
string
type
string
integrity
string
crossorigin
string
includebefore
string
Returns
- Task
IncludeLinks(object[])
public Task IncludeLinks(object[] links)
Parameters
links
object[]
Returns
- Task
public Task IncludeMeta(string id, string attribute, string name, string content)
Parameters
id
string
attribute
string
name
string
content
string
Returns
- Task
IncludeScript(string, string, string, string, string, string)
public Task IncludeScript(string id, string src, string integrity, string crossorigin, string content, string location)
Parameters
id
string
src
string
integrity
string
crossorigin
string
content
string
location
string
Returns
- Task
IncludeScript(string, string, string, string, string, string, string)
public Task IncludeScript(string id, string src, string integrity, string crossorigin, string type, string content, string location)
Parameters
id
string
src
string
integrity
string
crossorigin
string
type
string
content
string
location
string
Returns
- Task
IncludeScripts(object[])
public Task IncludeScripts(object[] scripts)
Parameters
scripts
object[]
Returns
- Task
RedirectBrowser(string, int)
public Task RedirectBrowser(string url, int wait)
Parameters
url
string
wait
int
Returns
- Task
RefreshBrowser(bool, int)
public Task RefreshBrowser(bool force, int wait)
Parameters
force
bool
wait
int
Returns
- Task
RemoveElementsById(string, string, string)
public Task RemoveElementsById(string prefix, string first, string last)
Parameters
prefix
string
first
string
last
string
Returns
- Task
RemoveIndexedDBItem(string)
public Task RemoveIndexedDBItem(string key)
Parameters
key
string
Returns
- Task
public Task ScrollTo(int top, int left, string behavior)
Parameters
top
int
left
int
behavior
string
Returns
- Task
public Task ScrollToId(string id)
Parameters
id
string
Returns
- Task
SetCookie(string, string, int)
public Task SetCookie(string name, string value, int days)
Parameters
name
string
value
string
days
int
Returns
- Task
SetCookie(string, string, int, bool, string)
public Task SetCookie(string name, string value, int days, bool secure, string sameSite)
Parameters
name
string
value
string
days
int
secure
bool
sameSite
string
Returns
- Task
SetElementAttribute(string, string, string)
public Task SetElementAttribute(string id, string attribute, string value)
Parameters
id
string
attribute
string
value
string
Returns
- Task
SetIndexedDBItem(string, object)
public Task SetIndexedDBItem(string key, object value)
Parameters
key
string
value
object
Returns
- Task
public Task SubmitForm(string path, object fields)
Parameters
path
string
fields
object
Returns
- Task
UpdateTitle(string)
public Task UpdateTitle(string title)
Parameters
title
string
Returns
- Task
UploadFiles(string, string, string, string, string)
public Task UploadFiles(string posturl, string folder, string id, string antiforgerytoken, string jwt)
Parameters
posturl
string
folder
string
id
string
antiforgerytoken
string
jwt
string
Returns
- Task