« Radzen » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Aucun résumé des modifications
Ligne 29 : Ligne 29 :
<head>
<head>
     <link rel="stylesheet" href="_content/Radzen.Blazor/css/default-base.css">
     <link rel="stylesheet" href="_content/Radzen.Blazor/css/default-base.css">
<!-- ... -->
 
@* ... *@
 
     <script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
     <script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
</body>
</body>
</filebox>
</filebox>

Version du 4 avril 2021 à 00:46

CheckBoxList

MyPage.razor
<RadzenCheckBoxList @bind-Value="@selectedItemIds"
                    TValue="int"
                    Data="@items"
                    TextProperty="Name"
                    ValueProperty="Id" />
MyPage.razor.cs
// has to be an IEnumerable
private IEnumerable<int> selectedItemIds;

private IReadOnlyCollection<ItemDto> items;

Installation

Bash.svg
dotnet add package Radzen.Blazor
_Imports.razor
@using Radzen
@using Radzen.Blazor
_Host.cshtml
<head>
    <link rel="stylesheet" href="_content/Radzen.Blazor/css/default-base.css">

@* ... *@

    <script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
</body>