diff --git a/Components/Components.csproj b/Components/Components.csproj index 3dc3012..a2fe5ef 100644 --- a/Components/Components.csproj +++ b/Components/Components.csproj @@ -15,24 +15,24 @@ - + - - - + + + - + - - + + - + diff --git a/Components/Form/FormToggleComponent.razor b/Components/Form/FormToggleComponent.razor new file mode 100644 index 0000000..bd9823a --- /dev/null +++ b/Components/Form/FormToggleComponent.razor @@ -0,0 +1,122 @@ +
+
+
+ @Label: +
+ +
+ @if (Info != "") + { +
+ @Info +
+ } +
+ + +@code { + + [Parameter] + public string Label { get; set; } = ""; + + [Parameter] + public string Info { get; set; } = ""; + + [Parameter] + public EventCallback OnChange { get; set; } + + [Parameter] + public bool ReadOnly { get; set; } + + [Parameter] + public bool Value { get; set; } + + private string labelId = ""; + + protected override void OnInitialized() + { + labelId = Label.ToLower().Replace(" ", "_"); + } + +} \ No newline at end of file diff --git a/Components/Inputs/SearchButtonComponent.razor b/Components/Inputs/SearchButtonComponent.razor index 818ec9d..aaa1d9a 100644 --- a/Components/Inputs/SearchButtonComponent.razor +++ b/Components/Inputs/SearchButtonComponent.razor @@ -1,6 +1,6 @@ -@inject ISearchService searchService -@inject NavigationManager navigationManager -@inject IJSRuntime jsRuntime +@inject ISearchService SearchService +@inject NavigationManager NavigationManager +@inject IJSRuntime JsRuntime