C# Class MvcContrib.FluentHtml.Behaviors.TypeCssClassBehavior

Adds CSS classes to the element based on the type of the member. Specifically handles number and date elements.
Inheritance: ThreadSafeMemberBehavior
显示文件 Open project: atomicobject/mvccontrib Class Usage Examples

Public Methods

Method Description
TypeCssClassBehavior ( ) : System

Constructor. Sets "number" as the class to add for number elements and "date" for date element.

TypeCssClassBehavior ( string numberClass, string dateClass ) : System

Constructor.

Protected Methods

Method Description
DoExecute ( IMemberElement element ) : void

Method Details

DoExecute() protected method

protected DoExecute ( IMemberElement element ) : void
element IMemberElement
return void

TypeCssClassBehavior() public method

Constructor. Sets "number" as the class to add for number elements and "date" for date element.
public TypeCssClassBehavior ( ) : System
return System

TypeCssClassBehavior() public method

Constructor.
public TypeCssClassBehavior ( string numberClass, string dateClass ) : System
numberClass string The class to use for number elements.
dateClass string The class to use for date elements.
return System