Table of Contents

Class RadzenPanel

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

RadzenPanel component.

public class RadzenPanel : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
RadzenPanel
Implements
Inherited Members

Examples

<RadzenPanel AllowCollapse="true"">
    <HeaderTemplate>
        Header
    </HeaderTemplate>
    <ChildContent>
        Content
    </ChildContent>
    <SummaryTemplate>
        Summary
    </SummaryTemplate>
</RadzenPanel>

Constructors

RadzenPanel()

public RadzenPanel()

Properties

AllowCollapse

Gets or sets a value indicating whether collapsing is allowed. Set to false by default.

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

Property Value

bool

true if collapsing is allowed; otherwise, false.

Collapse

Gets or sets the collapse callback.

[Parameter]
public EventCallback Collapse { get; set; }

Property Value

EventCallback

The collapse callback.

CollapseAriaLabel

Gets or sets the aria-label attribute of the collapse button.

[Parameter]
public string CollapseAriaLabel { get; set; }

Property Value

string

The aria-label attribute value of the collapse button.

CollapseTitle

Gets or sets the title attribute of the collapse button.

[Parameter]
public string CollapseTitle { get; set; }

Property Value

string

The title attribute value of the collapse button.

Collapsed

Gets or sets a value indicating whether this RadzenPanel is collapsed.

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

Property Value

bool

true if collapsed; otherwise, false.

Expand

Gets or sets the expand callback.

[Parameter]
public EventCallback Expand { get; set; }

Property Value

EventCallback

The expand callback.

ExpandAriaLabel

Gets or sets the aria-label attribute of the expand button.

[Parameter]
public string ExpandAriaLabel { get; set; }

Property Value

string

The aria-label attribute value of the expand button.

ExpandTitle

Gets or sets the title attribute of the expand button.

[Parameter]
public string ExpandTitle { get; set; }

Property Value

string

The title attribute value of the expand button.

FooterTemplate

Gets or sets the footer template.

[Parameter]
public RenderFragment FooterTemplate { get; set; }

Property Value

RenderFragment

The footer template.

HeaderTemplate

Gets or sets the header template.

[Parameter]
public RenderFragment HeaderTemplate { get; set; }

Property Value

RenderFragment

The header template.

Icon

Gets or sets the icon.

[Parameter]
public string Icon { get; set; }

Property Value

string

The icon.

IconColor

Gets or sets the icon color.

[Parameter]
public string IconColor { get; set; }

Property Value

string

The icon color.

SummaryTemplate

Gets or sets the summary template.

[Parameter]
public RenderFragment SummaryTemplate { get; set; }

Property Value

RenderFragment

The summary template.

Text

Gets or sets the text.

[Parameter]
public string Text { get; set; }

Property Value

string

The text.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

GetComponentCssClass()

protected override string GetComponentCssClass()

Returns

string

OnInitialized()

protected override void OnInitialized()

OnParametersSetAsync()

Called when parameters set asynchronous.

protected override Task OnParametersSetAsync()

Returns

Task

Task.

SetParametersAsync(ParameterView)

public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters ParameterView

Returns

Task