Class RadzenPanel
RadzenPanel component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenPanel : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Examples
<RadzenPanel AllowCollapse="true"">
<HeaderTemplate>
Header
</HeaderTemplate>
<ChildContent>
Content
</ChildContent>
<SummaryTemplate>
Summary
</SummaryTemplate>
</RadzenPanel>
Constructors
RadzenPanel()
RadzenPanel component.
Declaration
public RadzenPanel()
Examples
<RadzenPanel AllowCollapse="true"">
<HeaderTemplate>
Header
</HeaderTemplate>
<ChildContent>
Content
</ChildContent>
<SummaryTemplate>
Summary
</SummaryTemplate>
</RadzenPanel>
Properties
AllowCollapse
Gets or sets a value indicating whether collapsing is allowed. Set to false
by default.
Declaration
[Parameter]
public bool AllowCollapse { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Collapse
Gets or sets the collapse callback.
Declaration
[Parameter]
public EventCallback Collapse { get; set; }
Property Value
Type | Description |
---|---|
EventCallback | The collapse callback. |
CollapseAriaLabel
Gets or sets the aria-label attribute of the collapse button.
Declaration
[Parameter]
public string CollapseAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
string | The aria-label attribute value of the collapse button. |
CollapseTitle
Gets or sets the title attribute of the collapse button.
Declaration
[Parameter]
public string CollapseTitle { get; set; }
Property Value
Type | Description |
---|---|
string | The title attribute value of the collapse button. |
Collapsed
Gets or sets a value indicating whether this RadzenPanel is collapsed.
Declaration
[Parameter]
public bool Collapsed { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Expand
Gets or sets the expand callback.
Declaration
[Parameter]
public EventCallback Expand { get; set; }
Property Value
Type | Description |
---|---|
EventCallback | The expand callback. |
ExpandAriaLabel
Gets or sets the aria-label attribute of the expand button.
Declaration
[Parameter]
public string ExpandAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
string | The aria-label attribute value of the expand button. |
ExpandTitle
Gets or sets the title attribute of the expand button.
Declaration
[Parameter]
public string ExpandTitle { get; set; }
Property Value
Type | Description |
---|---|
string | The title attribute value of the expand button. |
FooterTemplate
Gets or sets the footer template.
Declaration
[Parameter]
public RenderFragment FooterTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The footer template. |
HeaderTemplate
Gets or sets the header template.
Declaration
[Parameter]
public RenderFragment HeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The header template. |
Icon
Gets or sets the icon.
Declaration
[Parameter]
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
string | The icon. |
IconColor
Gets or sets the icon color.
Declaration
[Parameter]
public string IconColor { get; set; }
Property Value
Type | Description |
---|---|
string | The icon color. |
SummaryTemplate
Gets or sets the summary template.
Declaration
[Parameter]
public RenderFragment SummaryTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The summary template. |
Text
Gets or sets the text.
Declaration
[Parameter]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string | The text. |
Methods
BuildRenderTree(RenderTreeBuilder)
RadzenPanel component.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
string |
Overrides
OnInitialized()
Called by the Blazor runtime.
Declaration
protected override void OnInitialized()
Overrides
SetParametersAsync(ParameterView)
Called by the Blazor runtime when parameters are set.
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task |