Table of Contents

Class VisibilityConditionDefinitionProvider

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Retrieves list of registered component visibility condition definitions for Form builder.

public sealed class VisibilityConditionDefinitionProvider : IVisibilityConditionDefinitionProvider, IFormBuilderDefinitionProvider<VisibilityConditionDefinition>
Inheritance
object
VisibilityConditionDefinitionProvider
Implements
Extension Methods

Constructors

VisibilityConditionDefinitionProvider()

Initializes a new instance of the VisibilityConditionDefinitionProvider class.

public VisibilityConditionDefinitionProvider()

Methods

Get(string)

Gets a form component visibility condition definition by its identifier.

public VisibilityConditionDefinition Get(string identifier)

Parameters

identifier string

Identifier of the form component visibility condition definition to retrieve.

Returns

VisibilityConditionDefinition

Returns form component visibility condition definition with given identifier, or null when not found.

GetAll()

Gets an enumeration of all registered form control visibility condition definitions.

public IEnumerable<VisibilityConditionDefinition> GetAll()

Returns

IEnumerable<VisibilityConditionDefinition>

GetAnotherFieldVisibilityConditionDefinitions(Type)

Returns VisibilityConditionDefinitions that define VisibilityConditions that inherits from AnotherFieldVisibilityCondition<TValue> and targets given targetType.

public IEnumerable<VisibilityConditionDefinition> GetAnotherFieldVisibilityConditionDefinitions(Type targetType)

Parameters

targetType Type

Value type for which to return VisibilityConditionDefinitions that define VisibilityConditions that inherits from AnotherFieldVisibilityCondition<TValue>.

Returns

IEnumerable<VisibilityConditionDefinition>

GetCustomVisibilityConditionDefinitions()

Returns all VisibilityConditionDefinitions that evaluates custom conditions not depending on the another field.

public IEnumerable<VisibilityConditionDefinition> GetCustomVisibilityConditionDefinitions()

Returns

IEnumerable<VisibilityConditionDefinition>