Class ThemeBase
public abstract class ThemeBase : ComponentBase, IThemeControl
- Inheritance
-
ThemeBase
- Implements
- Derived
Properties
JSRuntime
[Inject]
protected IJSRuntime JSRuntime { get; set; }
Property Value
LoggingService
[Inject]
protected ILogService LoggingService { get; set; }
Property Value
Name
Friendly name for a theme
public virtual string Name { get; set; }
Property Value
PageState
[CascadingParameter]
protected PageState PageState { get; set; }
Property Value
Panes
Comma delimited list of all panes in a theme
public virtual string Panes { get; set; }
Property Value
Resources
Identifies all resources in a theme
public virtual List<Resource> Resources { get; set; }
Property Value
SiteState
[Inject]
protected SiteState SiteState { get; set; }
Property Value
Thumbnail
Screen shot of a theme - assumed to be in the ThemePath() folder
public virtual string Thumbnail { get; set; }
Property Value
Methods
AddHeadContent(string)
public void AddHeadContent(string content)
Parameters
content
string
AddScript(Resource)
public void AddScript(Resource resource)
Parameters
resource
Resource
ContentUrl(int)
[Obsolete("ContentUrl(int fileId) is deprecated. Use FileUrl(int fileId) instead.", false)]
public string ContentUrl(int fileid)
Parameters
fileid
int
Returns
ContentUrl(int, bool)
[Obsolete("ContentUrl(int fileId, bool asAttachment) is deprecated. Use FileUrl(int fileId, bool download) instead.", false)]
public string ContentUrl(int fileid, bool asAttachment)
Parameters
Returns
EditUrl(int, string)
public string EditUrl(int moduleid, string action)
Parameters
Returns
EditUrl(int, string, Dictionary<string, string>)
public string EditUrl(int moduleid, string action, Dictionary<string, string> querystring)
Parameters
moduleid
intaction
stringquerystring
Dictionary<string, string>
Returns
EditUrl(int, string, string)
public string EditUrl(int moduleid, string action, string querystring)
Parameters
Returns
EditUrl(string, int, string, Dictionary<string, string>)
public string EditUrl(string path, int moduleid, string action, Dictionary<string, string> querystring)
Parameters
Returns
EditUrl(string, int, string, string)
public string EditUrl(string path, int moduleid, string action, string querystring)
Parameters
Returns
FileUrl(int)
public string FileUrl(int fileid)
Parameters
fileid
int
Returns
FileUrl(int, bool)
public string FileUrl(int fileid, bool download)
Parameters
Returns
FileUrl(string, string)
public string FileUrl(string folderpath, string filename)
Parameters
Returns
FileUrl(string, string, bool)
public string FileUrl(string folderpath, string filename, bool download)
Parameters
Returns
ImageUrl(int, int, int)
public string ImageUrl(int fileid, int width, int height)
Parameters
Returns
ImageUrl(int, int, int, string)
public string ImageUrl(int fileid, int width, int height, string mode)
Parameters
Returns
ImageUrl(int, int, int, string, string, string, int, bool)
public string ImageUrl(int fileid, int width, int height, string mode, string position, string background, int rotate, bool recreate)
Parameters
fileid
intwidth
intheight
intmode
stringposition
stringbackground
stringrotate
intrecreate
bool
Returns
Log(Alias, LogLevel, LogFunction, Exception, string, params object[])
public Task Log(Alias alias, LogLevel level, LogFunction function, Exception exception, string message, params object[] args)
Parameters
Returns
Log(Alias, LogLevel, string, Exception, string, params object[])
public Task Log(Alias alias, LogLevel level, string function, Exception exception, string message, params object[] args)
Parameters
Returns
NavigateUrl()
public string NavigateUrl()
Returns
NavigateUrl(bool)
public string NavigateUrl(bool refresh)
Parameters
refresh
bool
Returns
NavigateUrl(int, string)
public string NavigateUrl(int moduleid, string action)
Parameters
Returns
NavigateUrl(int, string, Dictionary<string, string>)
public string NavigateUrl(int moduleid, string action, Dictionary<string, string> querystring)
Parameters
moduleid
intaction
stringquerystring
Dictionary<string, string>
Returns
NavigateUrl(int, string, string)
public string NavigateUrl(int moduleid, string action, string querystring)
Parameters
Returns
NavigateUrl(string)
public string NavigateUrl(string path)
Parameters
path
string
Returns
NavigateUrl(string, bool)
public string NavigateUrl(string path, bool refresh)
Parameters
Returns
NavigateUrl(string, Dictionary<string, string>)
public string NavigateUrl(string path, Dictionary<string, string> querystring)
Parameters
path
stringquerystring
Dictionary<string, string>
Returns
NavigateUrl(string, int, string)
public string NavigateUrl(string path, int moduleId, string action)
Parameters
Returns
NavigateUrl(string, int, string, Dictionary<string, string>)
public string NavigateUrl(string path, int moduleid, string action, Dictionary<string, string> querystring)
Parameters
Returns
NavigateUrl(string, int, string, string)
public string NavigateUrl(string path, int moduleid, string action, string querystring)
Parameters
Returns
NavigateUrl(string, string)
public string NavigateUrl(string path, string querystring)
Parameters
Returns
OnAfterRenderAsync(bool)
Method invoked after each time the component has been rendered interactively and the UI has finished updating (for example, after elements have been added to the browser DOM). Any ElementReference fields will be populated by the time this runs.
This method is not invoked during prerendering or server-side rendering, because those processes are not attached to any live browser DOM and are already complete before the DOM is updated.
Note that the component does not automatically re-render after the completion of any returned Task, because that would cause an infinite render loop.
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
firstRender
boolSet to
true
if this is the first time OnAfterRender(bool) has been invoked on this component instance; otherwisefalse
.
Returns
Remarks
The OnAfterRender(bool) and OnAfterRenderAsync(bool) lifecycle methods
are useful for performing interop, or interacting with values received from @ref
.
Use the firstRender
parameter to ensure that initialization work is only performed
once.
ScrollToPageTop()
public Task ScrollToPageTop()
Returns
SetPageTitle(string)
public void SetPageTitle(string title)
Parameters
title
string
ThemePath()
public string ThemePath()