Class Extensions
Extension methods used by ChameleonForms.
Inheritance
System.Object
Extensions
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: ChameleonForms
Assembly: ChameleonForms.Core.dll
Syntax
public static class Extensions
Methods
| Improve this Doc View SourceAttrs(IHtmlHelper, Func<Object, Object>[])
Shortcut to tersely create HtmlAttributes object from the HTML Helper.
Declaration
public static HtmlAttributes Attrs(this IHtmlHelper helper, params Func<object, object>[] attrs)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper | helper | The HTML helper |
System.Func<System.Object, System.Object>[] | attrs | Any attributes you want to define in attr_name => attr_value format |
Returns
Type | Description |
---|---|
HtmlAttributes | A HtmlAttributes object that can be used to chain methods to further specify attributes |
ToHtml(String)
Converts a string to an encoded Microsoft.AspNetCore.Html.IHtmlContent.
Declaration
public static IHtmlContent ToHtml(this string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | The content to encode and turn into an IHtmlContent |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Html.IHtmlContent | The IHtmlContent |