Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/BootstrapBlazor/Options/ScrollIntoViewOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone

using System.ComponentModel;

namespace BootstrapBlazor.Components;

/// <summary>
Expand Down Expand Up @@ -35,16 +37,19 @@ public enum ScrollIntoViewBehavior
/// <summary>
/// scrolling should animate smoothly
/// </summary>
[Description("smooth")]
Smooth,

/// <summary>
/// scrolling should happen instantly in a single jump
/// </summary>
[Description("instant")]
Instant,

/// <summary>
/// scroll behavior is determined by the computed value of scroll-behavior
/// </summary>
[Description("auto")]
Auto
}

Expand All @@ -57,21 +62,25 @@ public enum ScrollIntoViewBlock
/// <summary>
/// Start
/// </summary>
[Description("start")]
Start,

/// <summary>
/// Center
/// </summary>
[Description("center")]
Center,

/// <summary>
/// End
/// </summary>
[Description("end")]
End,

/// <summary>
/// Nearest
/// </summary>
[Description("nearest")]
Nearest
}

Expand All @@ -84,20 +93,24 @@ public enum ScrollIntoViewInline
/// <summary>
/// Start
/// </summary>
[Description("start")]
Start,

/// <summary>
/// Center
/// </summary>
[Description("center")]
Center,

/// <summary>
/// End
/// </summary>
[Description("end")]
End,

/// <summary>
/// Nearest
/// </summary>
[Description("nearest")]
Nearest
}
Loading