C# Class MvcContrib.FluentHtml.Behaviors.RequiredCssClassBehavior

Adds a CSS class to the element if the it has an attribute of the specified type or if the model member is a non-nullable value type.
Inheritance: ThreadSafeMemberBehavior
Afficher le fichier Open project: atomicobject/mvccontrib Class Usage Examples

Méthodes publiques

Méthode Description
RequiredCssClassBehavior ( ) : System

Constructor. Sets "required" as the class to add.

RequiredCssClassBehavior ( string requiredClass ) : System

Constructor

Méthodes protégées

Méthode Description
DoExecute ( IMemberElement element ) : void
IsAutomaticallyRequired ( IMemberElement element ) : bool
IsRequired ( IMemberElement element ) : bool

Method Details

DoExecute() protected méthode

protected DoExecute ( IMemberElement element ) : void
element IMemberElement
Résultat void

IsAutomaticallyRequired() protected méthode

protected IsAutomaticallyRequired ( IMemberElement element ) : bool
element IMemberElement
Résultat bool

IsRequired() protected méthode

protected IsRequired ( IMemberElement element ) : bool
element IMemberElement
Résultat bool

RequiredCssClassBehavior() public méthode

Constructor. Sets "required" as the class to add.
public RequiredCssClassBehavior ( ) : System
Résultat System

RequiredCssClassBehavior() public méthode

Constructor
public RequiredCssClassBehavior ( string requiredClass ) : System
requiredClass string The class to add for required elements.
Résultat System