BlazorReorder/BlazorReorderExample/Pages/Index.razor

29 lines
862 B
Text
Raw Normal View History

2022-04-05 20:48:08 +02:00
@page "/"
2022-04-06 01:07:42 +02:00
<PageTitle>Blazor Reorder Example</PageTitle>
2022-04-05 20:48:08 +02:00
<h1>Hello, sorted world!</h1>
Welcome to your new reorderer list.
<div class="card">
2022-04-06 01:07:42 +02:00
<Reorder Items="list" TItem="ListItem">
<div class="mb-2 mx-2">
<h5>@context.title</h5>
<p>@context.details <a href="@context.url">Go</a></p>
</div>
</Reorder>
2022-04-05 20:48:08 +02:00
</div>
@code
{
public List<ListItem> list = new()
{
new ListItem("Google", "https://google.com", "Again looking for a bug ..."),
new ListItem("StackOverflow", "https://stackoverflow.com", "Could be this the solution?"),
2022-04-06 01:20:17 +02:00
new ListItem("GitHub", "https://github.com", "Let's get awesome code"),
new ListItem("Twitter", "https://twitter.com", "I want to rest"),
new ListItem("Another", "https://another.com", "The solution must be somewhere!!!")
2022-04-05 20:48:08 +02:00
};
2022-04-06 01:07:42 +02:00
}