Class IsEmptyVisibilityCondition
Indicates that a form component will be visible only when the dependee property is empty string, empty collection or null.
[VisibilityConditionAttribute(typeof(VisibleIfEmptyAttribute))]
public class IsEmptyVisibilityCondition : VisibilityConditionWithDependency, IVisibilityCondition
- Inheritance
-
objectIsEmptyVisibilityCondition
- Implements
- Inherited Members
- Extension Methods
Constructors
IsEmptyVisibilityCondition()
public IsEmptyVisibilityCondition()
Methods
Evaluate(IFormFieldValueProvider)
Evaluates the visibility condition and returns the result.
public override bool Evaluate(IFormFieldValueProvider formFieldValueProvider)
Parameters
formFieldValueProviderIFormFieldValueProviderProvider of values of other form fields for contextual evaluation. Only fields logically preceding the current field are available.
Returns
- bool
Returns true is the visibility condition is met (i.e. the associated component is to be displayed), otherwise returns false.