HtmlScripts
Assembly: ServiceStack.Common.dll
View Source
Declaration
public class HtmlScripts : ScriptMethods, IConfigureScriptContext
Properties
VoidElements
View Source
Declaration
public static HashSet<string> VoidElements { get; }
Inherited Properties
Context
View Source
Declaration
public ScriptContext Context { get; set; }
InvokerCache
View Source
Declaration
public ConcurrentDictionary<string, MethodInvoker> InvokerCache { get; }
Pages
View Source
Declaration
public ISharpPages Pages { get; set; }
Fields
EvaluateWhenSkippingFilterExecution
View Source
Declaration
public static List<string> EvaluateWhenSkippingFilterExecution
Methods
Configure(ScriptContext)
View Source
Declaration
public void Configure(ScriptContext context)
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
htmlList(IEnumerable)
View Source
Declaration
public IRawString htmlList(IEnumerable target)
Returns
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | target |
htmlList(IEnumerable, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlList(IEnumerable target, Dictionary<string, object> options)
Returns
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | target |
System.Collections.Generic.Dictionary<System.String,System.Object> | options |
htmlDump(Object)
View Source
Declaration
public IRawString htmlDump(object target)
Returns
Parameters
Type | Name |
---|---|
System.Object | target |
htmlDump(Object, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlDump(object target, Dictionary<string, object> options)
Returns
Parameters
Type | Name |
---|---|
System.Object | target |
System.Collections.Generic.Dictionary<System.String,System.Object> | options |
HtmlList(IEnumerable, HtmlDumpOptions)
View Source
Declaration
public static string HtmlList(IEnumerable items, HtmlDumpOptions options)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Collections.IEnumerable | items |
ServiceStack.HtmlDumpOptions | options |
HtmlDump(Object, HtmlDumpOptions)
View Source
Declaration
public static string HtmlDump(object target, HtmlDumpOptions options)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | target |
ServiceStack.HtmlDumpOptions | options |
htmlError(ScriptScopeContext)
View Source
Declaration
public IRawString htmlError(ScriptScopeContext scope)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
htmlError(ScriptScopeContext, Exception)
View Source
Declaration
public IRawString htmlError(ScriptScopeContext scope, Exception ex)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.Exception | ex |
htmlError(ScriptScopeContext, Exception, Object)
View Source
Declaration
public IRawString htmlError(ScriptScopeContext scope, Exception ex, object options)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.Exception | ex |
System.Object | options |
htmlErrorMessage(ScriptScopeContext)
View Source
Declaration
public IRawString htmlErrorMessage(ScriptScopeContext scope)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
htmlErrorMessage(Exception)
View Source
Declaration
public IRawString htmlErrorMessage(Exception ex)
Returns
Parameters
Type | Name |
---|---|
System.Exception | ex |
htmlErrorMessage(Exception, Object)
View Source
Declaration
public IRawString htmlErrorMessage(Exception ex, object options)
Returns
Parameters
Type | Name |
---|---|
System.Exception | ex |
System.Object | options |
htmlErrorDebug(ScriptScopeContext)
View Source
Declaration
public IRawString htmlErrorDebug(ScriptScopeContext scope)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
htmlErrorDebug(ScriptScopeContext, Object)
View Source
Declaration
public IRawString htmlErrorDebug(ScriptScopeContext scope, object ex)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.Object | ex |
htmlErrorDebug(ScriptScopeContext, Exception, Object)
View Source
Declaration
public IRawString htmlErrorDebug(ScriptScopeContext scope, Exception ex, object options)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
System.Exception | ex |
System.Object | options |
htmlAttrsList(Dictionary<String, Object>)
View Source
Declaration
public string htmlAttrsList(Dictionary<string, object> attrs)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlAttrs(Object)
View Source
Declaration
public IRawString htmlAttrs(object target)
Returns
Parameters
Type | Name |
---|---|
System.Object | target |
htmlClassList(Object)
View Source
Declaration
public string htmlClassList(object target)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | target |
htmlClass(Object)
View Source
Declaration
public IRawString htmlClass(object target)
Returns
Parameters
Type | Name |
---|---|
System.Object | target |
htmlHasClass(Object, String)
View Source
Declaration
public bool htmlHasClass(object target, string name)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Object | target |
System.String | name |
htmlAddClass(Object, String)
View Source
Declaration
public string htmlAddClass(object target, string name)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Object | target |
System.String | name |
htmlFormat(String, String)
View Source
Declaration
public IRawString htmlFormat(string htmlWithFormat, string arg)
Returns
Parameters
Type | Name |
---|---|
System.String | htmlWithFormat |
System.String | arg |
htmlLink(String)
View Source
Declaration
public IRawString htmlLink(string href)
Returns
Parameters
Type | Name |
---|---|
System.String | href |
htmlLink(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlLink(string href, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | href |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlImage(String)
View Source
Declaration
public IRawString htmlImage(string src)
Returns
Parameters
Type | Name |
---|---|
System.String | src |
htmlImage(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlImage(string src, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | src |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlHiddenInputs(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlHiddenInputs(Dictionary<string, object> inputValues)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | inputValues |
htmlOptions(Object)
View Source
Declaration
public IRawString htmlOptions(object values)
Returns
Parameters
Type | Name |
---|---|
System.Object | values |
htmlOptions(Object, Object)
View Source
Declaration
public IRawString htmlOptions(object values, object options)
Returns
Parameters
Type | Name |
---|---|
System.Object | values |
System.Object | options |
htmlTag(Dictionary<String, Object>, String)
View Source
Declaration
public IRawString htmlTag(Dictionary<string, object> attrs, string tag)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
System.String | tag |
htmlTag(String, Dictionary<String, Object>, String)
View Source
Declaration
public IRawString htmlTag(string innerHtml, Dictionary<string, object> attrs, string tag)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
System.String | tag |
htmlDiv(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlDiv(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlDiv(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlDiv(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlSpan(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlSpan(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlSpan(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlSpan(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlA(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlA(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlA(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlA(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlImg(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlImg(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlImg(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlImg(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH1(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH1(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH1(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH1(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH2(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH2(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH2(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH2(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH3(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH3(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH3(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH3(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH4(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH4(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH4(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH4(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH5(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH5(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH5(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH5(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH6(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH6(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlH6(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlH6(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlEm(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlEm(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlEm(String)
View Source
Declaration
public IRawString htmlEm(string text)
Returns
Parameters
Type | Name |
---|---|
System.String | text |
htmlB(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlB(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlB(String)
View Source
Declaration
public IRawString htmlB(string text)
Returns
Parameters
Type | Name |
---|---|
System.String | text |
htmlUl(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlUl(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlUl(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlUl(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlOl(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlOl(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlOl(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlOl(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlLi(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlLi(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlLi(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlLi(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlTable(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlTable(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlTable(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlTable(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlTr(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlTr(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlTr(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlTr(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlTh(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlTh(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlTh(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlTh(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlTd(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlTd(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlTd(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlTd(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlForm(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlForm(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlForm(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlForm(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlLabel(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlLabel(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlLabel(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlLabel(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlInput(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlInput(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlInput(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlInput(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlTextArea(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlTextArea(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlTextArea(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlTextArea(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlButton(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlButton(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlButton(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlButton(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlSelect(Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlSelect(Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlSelect(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlSelect(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlOption(String, Dictionary<String, Object>)
View Source
Declaration
public IRawString htmlOption(string innerHtml, Dictionary<string, object> attrs)
Returns
Parameters
Type | Name |
---|---|
System.String | innerHtml |
System.Collections.Generic.Dictionary<System.String,System.Object> | attrs |
htmlOption(String)
View Source
Declaration
public IRawString htmlOption(string text)
Returns
Parameters
Type | Name |
---|---|
System.String | text |
Inherited Methods
GetInvoker(String, Int32, InvokerType)
View Source
Declaration
public MethodInvoker GetInvoker(string name, int argsCount, InvokerType type)
Returns
Parameters
Type | Name |
---|---|
System.String | name |
System.Int32 | argsCount |
ServiceStack.Script.InvokerType | type |
QueryFilters(String)
View Source
Declaration
public List<MethodInfo> QueryFilters(string filterName)
Returns
System.Collections.Generic.List<System.Reflection.MethodInfo>
Parameters
Type | Name |
---|---|
System.String | filterName |