Skip to main content

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
TypeName
ServiceStack.Script.ScriptContextcontext

htmlList(IEnumerable)

View Source
Declaration
public IRawString htmlList(IEnumerable target)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Collections.IEnumerabletarget

htmlList(IEnumerable, Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlList(IEnumerable target, Dictionary<string, object> options)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Collections.IEnumerabletarget
System.Collections.Generic.Dictionary<System.String,System.Object>options

htmlDump(Object)

View Source
Declaration
public IRawString htmlDump(object target)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Objecttarget

htmlDump(Object, Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlDump(object target, Dictionary<string, object> options)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Objecttarget
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
TypeName
System.Collections.IEnumerableitems
ServiceStack.HtmlDumpOptionsoptions

HtmlDump(Object, HtmlDumpOptions)

View Source
Declaration
public static string HtmlDump(object target, HtmlDumpOptions options)
Returns

System.String

Parameters
TypeName
System.Objecttarget
ServiceStack.HtmlDumpOptionsoptions

htmlError(ScriptScopeContext)

View Source
Declaration
public IRawString htmlError(ScriptScopeContext scope)
Returns

ServiceStack.IRawString

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope

htmlError(ScriptScopeContext, Exception)

View Source
Declaration
public IRawString htmlError(ScriptScopeContext scope, Exception ex)
Returns

ServiceStack.IRawString

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Exceptionex

htmlError(ScriptScopeContext, Exception, Object)

View Source
Declaration
public IRawString htmlError(ScriptScopeContext scope, Exception ex, object options)
Returns

ServiceStack.IRawString

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Exceptionex
System.Objectoptions

htmlErrorMessage(ScriptScopeContext)

View Source
Declaration
public IRawString htmlErrorMessage(ScriptScopeContext scope)
Returns

ServiceStack.IRawString

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope

htmlErrorMessage(Exception)

View Source
Declaration
public IRawString htmlErrorMessage(Exception ex)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Exceptionex

htmlErrorMessage(Exception, Object)

View Source
Declaration
public IRawString htmlErrorMessage(Exception ex, object options)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Exceptionex
System.Objectoptions

htmlErrorDebug(ScriptScopeContext)

View Source
Declaration
public IRawString htmlErrorDebug(ScriptScopeContext scope)
Returns

ServiceStack.IRawString

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope

htmlErrorDebug(ScriptScopeContext, Object)

View Source
Declaration
public IRawString htmlErrorDebug(ScriptScopeContext scope, object ex)
Returns

ServiceStack.IRawString

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Objectex

htmlErrorDebug(ScriptScopeContext, Exception, Object)

View Source
Declaration
public IRawString htmlErrorDebug(ScriptScopeContext scope, Exception ex, object options)
Returns

ServiceStack.IRawString

Parameters
TypeName
ServiceStack.Script.ScriptScopeContextscope
System.Exceptionex
System.Objectoptions

htmlAttrsList(Dictionary<String, Object>)

View Source
Declaration
public string htmlAttrsList(Dictionary<string, object> attrs)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlAttrs(Object)

View Source
Declaration
public IRawString htmlAttrs(object target)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Objecttarget

htmlClassList(Object)

View Source
Declaration
public string htmlClassList(object target)
Returns

System.String

Parameters
TypeName
System.Objecttarget

htmlClass(Object)

View Source
Declaration
public IRawString htmlClass(object target)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Objecttarget

htmlHasClass(Object, String)

View Source
Declaration
public bool htmlHasClass(object target, string name)
Returns

System.Boolean

Parameters
TypeName
System.Objecttarget
System.Stringname

htmlAddClass(Object, String)

View Source
Declaration
public string htmlAddClass(object target, string name)
Returns

System.String

Parameters
TypeName
System.Objecttarget
System.Stringname

htmlFormat(String, String)

View Source
Declaration
public IRawString htmlFormat(string htmlWithFormat, string arg)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.StringhtmlWithFormat
System.Stringarg

htmlLink(String)

View Source
Declaration
public IRawString htmlLink(string href)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Stringhref

htmlLink(String, Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlLink(string href, Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Stringhref
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlImage(String)

View Source
Declaration
public IRawString htmlImage(string src)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Stringsrc

htmlImage(String, Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlImage(string src, Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Stringsrc
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlHiddenInputs(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlHiddenInputs(Dictionary<string, object> inputValues)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.Object>inputValues

htmlOptions(Object)

View Source
Declaration
public IRawString htmlOptions(object values)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Objectvalues

htmlOptions(Object, Object)

View Source
Declaration
public IRawString htmlOptions(object values, object options)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Objectvalues
System.Objectoptions

htmlTag(Dictionary<String, Object>, String)

View Source
Declaration
public IRawString htmlTag(Dictionary<string, object> attrs, string tag)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Collections.Generic.Dictionary<System.String,System.Object>attrs
System.Stringtag

htmlTag(String, Dictionary<String, Object>, String)

View Source
Declaration
public IRawString htmlTag(string innerHtml, Dictionary<string, object> attrs, string tag)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs
System.Stringtag

htmlDiv(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlDiv(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlSpan(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlSpan(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlA(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlA(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlImg(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlImg(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlH1(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlH1(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlH2(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlH2(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlH3(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlH3(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlH4(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlH4(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlH5(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlH5(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlH6(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlH6(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlEm(String)

View Source
Declaration
public IRawString htmlEm(string text)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Stringtext

htmlB(String, Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlB(string innerHtml, Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlB(String)

View Source
Declaration
public IRawString htmlB(string text)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Stringtext

htmlUl(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlUl(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlOl(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlOl(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlLi(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlLi(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlTable(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlTable(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlTr(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlTr(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlTh(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlTh(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlTd(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlTd(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlForm(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlForm(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlLabel(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlLabel(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlInput(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlInput(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlTextArea(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlTextArea(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlButton(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlButton(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlSelect(Dictionary<String, Object>)

View Source
Declaration
public IRawString htmlSelect(Dictionary<string, object> attrs)
Returns

ServiceStack.IRawString

Parameters
TypeName
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
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

ServiceStack.IRawString

Parameters
TypeName
System.StringinnerHtml
System.Collections.Generic.Dictionary<System.String,System.Object>attrs

htmlOption(String)

View Source
Declaration
public IRawString htmlOption(string text)
Returns

ServiceStack.IRawString

Parameters
TypeName
System.Stringtext

Inherited Methods

GetInvoker(String, Int32, InvokerType)

View Source
Declaration
public MethodInvoker GetInvoker(string name, int argsCount, InvokerType type)
Returns

ServiceStack.MethodInvoker

Parameters
TypeName
System.Stringname
System.Int32argsCount
ServiceStack.Script.InvokerTypetype

QueryFilters(String)

View Source
Declaration
public List<MethodInfo> QueryFilters(string filterName)
Returns

System.Collections.Generic.List<System.Reflection.MethodInfo>

Parameters
TypeName
System.StringfilterName

Implements