-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accordion item Disabled property added
Close #1861
- Loading branch information
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
RadzenBlazorDemos/Pages/AccordionDisableExpandCollapse.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
<RadzenStack class="rz-p-0 rz-p-md-12"> | ||
<RadzenCard class="rz-p-4" Variant="Variant.Outlined"> | ||
<RadzenStack Orientation="Orientation.Vertical" Gap="4px"> | ||
<RadzenLabel Text="Expand/Collapse enabled:" /> | ||
<RadzenSwitch @bind-Value="canCollapse" /> | ||
</RadzenStack> | ||
</RadzenCard> | ||
<RadzenAccordion> | ||
<Items> | ||
<RadzenAccordionItem Disabled="@(!canCollapse)" Text="Orders" Icon="account_balance_wallet"> | ||
Details for Orders | ||
</RadzenAccordionItem> | ||
<RadzenAccordionItem Disabled="@(!canCollapse)" Text="Employees" Icon="account_box"> | ||
Details for Employees | ||
</RadzenAccordionItem> | ||
<RadzenAccordionItem Disabled="@(!canCollapse)" Text="Customers" Icon="accessibility"> | ||
Details for Customers | ||
</RadzenAccordionItem> | ||
</Items> | ||
</RadzenAccordion> | ||
</RadzenStack> | ||
|
||
@code { | ||
bool canCollapse = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters