2022-04-05 20:48:08 +02:00
|
|
|
@page "/"
|
|
|
|
|
|
|
|
<PageTitle>Index</PageTitle>
|
|
|
|
|
|
|
|
<h1>Hello, sorted world!</h1>
|
|
|
|
|
|
|
|
Welcome to your new reorderer list.
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@code
|
|
|
|
{
|
|
|
|
public List<ListItem> list = new()
|
|
|
|
{
|
2022-04-06 01:03:03 +02:00
|
|
|
new ListItem("Google", "https://google.com", "Again looking for a bug ..."),
|
|
|
|
new ListItem("StackOverflow", "https://stackoverflow.com", "Could be this the solution?"),
|
|
|
|
new ListItem("GitHub", "https://github.com", "Let's steal awesome code"),
|
|
|
|
new ListItem("Twitter", "https://twitter.com", "What a genious am I"),
|
|
|
|
new ListItem("Another", "https://another.com", "The solution must be somewhere!!!")
|
2022-04-05 20:48:08 +02:00
|
|
|
};
|
|
|
|
}
|