Share via


EditContextFieldClassExtensions Class

Definition

Provides extension methods to describe the state of EditContext fields as CSS class names.

public ref class EditContextFieldClassExtensions abstract sealed
public static class EditContextFieldClassExtensions
type EditContextFieldClassExtensions = class
Public Module EditContextFieldClassExtensions
Inheritance
EditContextFieldClassExtensions

Methods

FieldCssClass(EditContext, FieldIdentifier)

Gets a string that indicates the status of the specified field as a CSS class.

FieldCssClass<TField>(EditContext, Expression<Func<TField>>)

Gets a string that indicates the status of the specified field as a CSS class. This will include some combination of "modified", "valid", or "invalid", depending on the status of the field.

SetFieldCssClassProvider(EditContext, FieldCssClassProvider)

Associates the supplied FieldCssClassProvider with the supplied EditContext. This customizes the field CSS class names used within the EditContext.

Applies to