mirror of
https://github.com/radzenhq/radzen-blazor.git
synced 2026-07-08 18:16:08 +00:00
26 lines
701 B
C#
26 lines
701 B
C#
using Microsoft.AspNetCore.Components;
|
|
using Radzen.Blazor.Rendering;
|
|
|
|
namespace Radzen.Blazor
|
|
{
|
|
/// <summary>
|
|
/// RadzenHeader component.
|
|
/// </summary>
|
|
public partial class RadzenHeader : RadzenComponentWithChildren
|
|
{
|
|
/// <summary>
|
|
/// The <see cref="RadzenLayout" /> this component is nested in.
|
|
/// </summary>
|
|
[CascadingParameter]
|
|
public RadzenLayout? Layout { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
protected override string GetComponentCssClass()
|
|
{
|
|
return ClassList.Create("rz-header")
|
|
.Add("fixed", Layout == null)
|
|
.ToString();
|
|
}
|
|
}
|
|
}
|