Class RadzenPanel
RadzenPanel component.
Implements
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenPanel : RadzenComponentWithChildren, IDisposable
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
public bool AllowCollapse { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Collapse
Gets or sets the collapse callback.
Declaration
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
public string CollapseAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String | The aria-label attribute value of the collapse button. |
Collapsed
Gets or sets a value indicating whether this RadzenPanel is collapsed.
Declaration
public bool Collapsed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
CollapseTitle
Gets or sets the title attribute of the collapse button.
Declaration
public string CollapseTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String | The title attribute value of the collapse button. |
Expand
Gets or sets the expand callback.
Declaration
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
public string ExpandAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String | The aria-label attribute value of the expand button. |
ExpandTitle
Gets or sets the title attribute of the expand button.
Declaration
public string ExpandTitle { get; set; }
Property Value
Type | Description |
---|---|
System.String | The title attribute value of the expand button. |
FooterTemplate
Gets or sets the footer template.
Declaration
public RenderFragment FooterTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The footer template. |
HeaderTemplate
Gets or sets the header template.
Declaration
public RenderFragment HeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The header template. |
Icon
Gets or sets the icon.
Declaration
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon. |
IconColor
Gets or sets the icon color.
Declaration
public string IconColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon color. |
SummaryTemplate
Gets or sets the summary template.
Declaration
public RenderFragment SummaryTemplate { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The summary template. |
Text
Gets or sets the text.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | The text. |
Methods
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
OnInitialized()
Called by the Blazor runtime.
Declaration
protected override void OnInitialized()
Overrides
OnParametersSetAsync()
Called when parameters set asynchronous.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
Task | Task. |
SetParametersAsync(ParameterView)
Called by the Blazor runtime when parameters are set.
Declaration
public override async Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task |