Skip to content

Commit

Permalink
Add new components: Filtering and Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 27, 2023
1 parent 545cada commit 8200b15
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Pages/Index.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@page "/"

@using BlazorSortable.Shared.Demos

@inject IJSRuntime JS

<div class="has-background-light">
Expand Down
2 changes: 0 additions & 2 deletions Shared/Cloning.razor → Shared/Demos/Cloning.razor
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@
}}
";

private bool showCode = false;

public List<Item> items1 = Enumerable.Range(1, 10).Select(i => new Item { Id = i, Name = $"Item {i}" }).ToList();

public List<Item> items2 = Enumerable.Range(11, 10).Select(i => new Item { Id = i, Name = $"Item {i}" }).ToList();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Shared/SimpleList.razor → Shared/Demos/SimpleList.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="container">
<h1 class="title is-size-1 has-text-centered">Filtering</h1>
<h1 class="title is-size-1 has-text-centered">Simple List</h1>
<Tabs CodeContent="@codeContent">
<ExampleContent>
<div class="columns">
Expand Down
2 changes: 1 addition & 1 deletion Shared/Tabs.razor → Shared/Demos/Tabs.razor
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public RenderFragment? ExampleContent { get; set; }

[Parameter]
public string CodeContent { get; set; }
public string CodeContent { get; set; } = "";

private void ShowCode()
{
Expand Down

0 comments on commit 8200b15

Please sign in to comment.