C# 클래스 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.
상속: ThreadSafeMemberBehavior
파일 보기 프로젝트 열기: atomicobject/mvccontrib 1 사용 예제들

공개 메소드들

메소드 설명
RequiredCssClassBehavior ( ) : System

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

RequiredCssClassBehavior ( string requiredClass ) : System

Constructor

보호된 메소드들

메소드 설명
DoExecute ( IMemberElement element ) : void
IsAutomaticallyRequired ( IMemberElement element ) : bool
IsRequired ( IMemberElement element ) : bool

메소드 상세

DoExecute() 보호된 메소드

protected DoExecute ( IMemberElement element ) : void
element IMemberElement
리턴 void

IsAutomaticallyRequired() 보호된 메소드

protected IsAutomaticallyRequired ( IMemberElement element ) : bool
element IMemberElement
리턴 bool

IsRequired() 보호된 메소드

protected IsRequired ( IMemberElement element ) : bool
element IMemberElement
리턴 bool

RequiredCssClassBehavior() 공개 메소드

Constructor. Sets "required" as the class to add.
public RequiredCssClassBehavior ( ) : System
리턴 System

RequiredCssClassBehavior() 공개 메소드

Constructor
public RequiredCssClassBehavior ( string requiredClass ) : System
requiredClass string The class to add for required elements.
리턴 System