
GoTop
Click to return to the top of the specified container
Click to return to the top usage
Demo
The Footer component appears at the bottom, and the page automatically scrolls back to the top when you click Back to the Top
This example passes the component client ID
Attributes
@page "/gotops"
@inject IStringLocalizer<GoTops> Localizer
<h3>GoTop</h3>
<h4>Click to return to the top of the specified container</h4>
<DemoBlock Title="Basic usage" Introduction="Click to return to the top usage" Name="Normal" Demo="typeof(Demos.GoTop.GoTopNormal)" />
<AttributeTable Items="@GetAttributes()" />
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Website: https://www.blazor.zone or https://argozhang.github.io/
namespace BootstrapBlazor.Shared.Samples;
/// <summary>
/// GoTops
/// </summary>
public sealed partial class GoTops
{
private IEnumerable<AttributeItem> GetAttributes() => new AttributeItem[]
{
new AttributeItem() {
Name = "Target",
Description = Localizer["Desc1"],
Type = "string",
ValueList = " — ",
DefaultValue = " — "
}
};
}