Table of Contents

Class Anchor

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

Anchor 组件部分类

public class Anchor : BootstrapModuleComponentBase, IComponent, IHandleAfterRender, IHandleEvent, IAsyncDisposable
Inheritance
Anchor
Implements
Inherited Members
Extension Methods

Constructors

Anchor()

public Anchor()

Properties

AnimationString

获得 滚动动画

protected string? AnimationString { get; }

Property Value

string

ChildContent

获得/设置 子内容

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

Container

获得/设置 滚动组件 Id 默认为 null 使用最近滚动条容器元素

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

Property Value

string

IsAnimation

获得/设置 滚动时是否开启动画 默认 true

[Parameter]
public bool IsAnimation { get; set; }

Property Value

bool

Offset

获得/设置 距离顶端偏移量 默认为 0

[Parameter]
public int Offset { get; set; }

Property Value

int

Target

获得/设置 目标组件 Id

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

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder