EditContextFieldClassExtensions.FieldCssClass Method

Definition

Overloads

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.

FieldCssClass(EditContext, FieldIdentifier)

Source:
EditContextFieldClassExtensions.cs
Source:
EditContextFieldClassExtensions.cs
Source:
EditContextFieldClassExtensions.cs
Source:
EditContextFieldClassExtensions.cs
Source:
EditContextFieldClassExtensions.cs
Source:
EditContextFieldClassExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static System::String ^ FieldCssClass(Microsoft::AspNetCore::Components::Forms::EditContext ^ editContext, Microsoft::AspNetCore::Components::Forms::FieldIdentifier % fieldIdentifier);
public static string FieldCssClass (this Microsoft.AspNetCore.Components.Forms.EditContext editContext, in Microsoft.AspNetCore.Components.Forms.FieldIdentifier fieldIdentifier);
static member FieldCssClass : Microsoft.AspNetCore.Components.Forms.EditContext * FieldIdentifier -> string
<Extension()>
Public Function FieldCssClass (editContext As EditContext, ByRef fieldIdentifier As FieldIdentifier) As String

Parameters

editContext
EditContext

The EditContext.

fieldIdentifier
FieldIdentifier

An identifier for the field.

Returns

A string that indicates the status of the field.

Applies to

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

Source:
EditContextFieldClassExtensions.cs
Source:
EditContextFieldClassExtensions.cs
Source:
EditContextFieldClassExtensions.cs
Source:
EditContextFieldClassExtensions.cs
Source:
EditContextFieldClassExtensions.cs
Source:
EditContextFieldClassExtensions.cs

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.

public:
generic <typename TField>
[System::Runtime::CompilerServices::Extension]
 static System::String ^ FieldCssClass(Microsoft::AspNetCore::Components::Forms::EditContext ^ editContext, System::Linq::Expressions::Expression<Func<TField> ^> ^ accessor);
public static string FieldCssClass<TField> (this Microsoft.AspNetCore.Components.Forms.EditContext editContext, System.Linq.Expressions.Expression<Func<TField>> accessor);
static member FieldCssClass : Microsoft.AspNetCore.Components.Forms.EditContext * System.Linq.Expressions.Expression<Func<'Field>> -> string
<Extension()>
Public Function FieldCssClass(Of TField) (editContext As EditContext, accessor As Expression(Of Func(Of TField))) As String

Type Parameters

TField

Parameters

editContext
EditContext

The EditContext.

accessor
Expression<Func<TField>>

An identifier for the field.

Returns

A string that indicates the status of the field.

Applies to