Table of Contents

Class DisplayBase<TValue>

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

显示组件基类

public abstract class DisplayBase<TValue> : BootstrapModuleComponentBase, IComponent, IHandleAfterRender, IHandleEvent, IAsyncDisposable

Type Parameters

TValue
Inheritance
DisplayBase<TValue>
Implements
Derived
Inherited Members
Extension Methods

Constructors

DisplayBase()

protected DisplayBase()

Properties

DisplayText

获得/设置 显示名称

[Parameter]
public string? DisplayText { get; set; }

Property Value

string

EditorForm

获得 IShowLabel 实例

[CascadingParameter(Name = "EditorForm")]
protected IShowLabel? EditorForm { get; set; }

Property Value

IShowLabel

FieldIdentifier

Gets the FieldIdentifier for the bound value.

protected FieldIdentifier? FieldIdentifier { get; set; }

Property Value

FieldIdentifier?

Filter

获得 IFilter 实例

[CascadingParameter]
protected IFilter? Filter { get; set; }

Property Value

IFilter

InputGroup

获得 InputGroup 实例

[CascadingParameter]
protected BootstrapInputGroup? InputGroup { get; set; }

Property Value

BootstrapInputGroup

IsShowLabel

是否显示 标签

protected bool IsShowLabel { get; set; }

Property Value

bool

NullableUnderlyingType

获得/设置 泛型参数 TValue 可为空类型 Type 实例,为空时表示类型不可为空

protected Type? NullableUnderlyingType { get; set; }

Property Value

Type

ShowLabel

获得/设置 是否显示前置标签 默认值为 null 为空时默认不显示标签

[Parameter]
public bool? ShowLabel { get; set; }

Property Value

bool?

ShowLabelTooltip

获得/设置 是否显示 Tooltip 多用于文字过长导致裁减时使用 默认 null

[Parameter]
public bool? ShowLabelTooltip { get; set; }

Property Value

bool?

ValidateForm

获得 ValidateForm 实例

[CascadingParameter]
protected ValidateForm? ValidateForm { get; set; }

Property Value

ValidateForm

Value

Gets or sets the value of the input. This should be used with two-way binding.

[Parameter]
public TValue? Value { get; set; }

Property Value

TValue

Examples

@bind-Value="model.PropertyName"

ValueChanged

Gets or sets a callback that updates the bound value.

[Parameter]
public EventCallback<TValue> ValueChanged { get; set; }

Property Value

EventCallback<TValue>

ValueExpression

Gets or sets an expression that identifies the bound value.

[Parameter]
public Expression<Func<TValue>>? ValueExpression { get; set; }

Property Value

Expression<Func<TValue>>

ValueType

获得/设置 泛型参数 TValue 可为空类型 Type 实例

protected Type? ValueType { get; set; }

Property Value

Type

Methods

FormatValueAsString(TValue)

将 Value 格式化为 String 方法

protected virtual string? FormatValueAsString(TValue value)

Parameters

value TValue

The value to format.

Returns

string

A string representation of the value.

OnParametersSet()

OnParametersSet 方法

protected override void OnParametersSet()

SetParametersAsync(ParameterView)

SetParametersAsync 方法

public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters ParameterView

Returns

Task