diff --git a/src/Connected.Components.Showcase.Runner/Pages/Index.razor b/src/Connected.Components.Showcase.Runner/Pages/Index.razor
index 4798256..6f94a83 100644
--- a/src/Connected.Components.Showcase.Runner/Pages/Index.razor
+++ b/src/Connected.Components.Showcase.Runner/Pages/Index.razor
@@ -3,76 +3,39 @@
Component Sandbox
-ValueDouble: @inputValueDouble.ToString()
-ValueInt: @inputValueInt.ToString()
-ValueText: @inputValueText
-SimpleSelectValue: @SelectedItemValue
-
-
+SelectedValue: @SelectedValue.ToString()
-
-
+
@code {
+ int SelectedValue;
- List> SelectFieldItems = new();
- string SelectedItemValue = "";
+ List items;
- int counter { get; set; } = 0;
-
- private string _inputText = string.Empty;
- string inputValueText
+ private void FillItemsList()
{
- get
- {
- return _inputText;
- }
- set
- {
- if (value.Length > 0) errorText = "Error!!!";
- else errorText = "";
- _inputText = value;
- StateHasChanged();
- }
- }
- double inputValueDouble = 12.756;
- int inputValueInt = 12;
+ if (items is null) items = new();
- DateTime inputValueDate = DateTime.Now.AddDays(-10);
+ Random random = new Random(DateTime.Now.Millisecond);
- public void CounterIncrement()
- {
- counter++;
+ for (int i = 0; i < 10; i++)
+ {
+ int item = random.Next();
+ items.Add(item);
+ }
StateHasChanged();
}
- string errorText = "Error!!";
-
protected override async Task OnInitializedAsync()
{
- SelectFieldItems.Add(new SelectItem() { DisplayedText = "Item 1", Value = "select item value 1", Enabled = true });
- SelectFieldItems.Add(new SelectItem() { DisplayedText = "Item 2", Value = "select item value 2", Enabled = true });
- SelectFieldItems.Add(new SelectItem() { DisplayedText = "Item 3", Value = "select item value 3", Enabled = true });
- SelectFieldItems.Add(new SelectItem() { DisplayedText = "Item 4", Value = "select item value 4", Enabled = true });
- SelectFieldItems.Add(new SelectItem() { DisplayedText = "Item 5", Value = "select item value 5", Enabled = false });
- SelectFieldItems.Add(new SelectItem() { DisplayedText = "Item 6", Value = "select item value 6", Enabled = true });
- SelectFieldItems.Add(new SelectItem() { DisplayedText = "Item 7", Value = "select item value 7", Enabled = true });
- SelectFieldItems.Add(new SelectItem() { DisplayedText = "Item 8", Value = "select item value 8", Enabled = false });
- SelectFieldItems.Add(new SelectItem() { DisplayedText = "Item 9", Value = "select item value 9", Enabled = true });
- SelectFieldItems.Add(new SelectItem() { DisplayedText = "Item 10", Value = "select item value 10", Enabled = true });
- SelectedItemValue = SelectFieldItems[0].Value;
+ FillItemsList();
}
}
\ No newline at end of file
diff --git a/src/Connected.Components/Components/NumberInput.razor b/src/Connected.Components/Components/NumberInput.razor
index c451fdf..aebe254 100644
--- a/src/Connected.Components/Components/NumberInput.razor
+++ b/src/Connected.Components/Components/NumberInput.razor
@@ -5,18 +5,19 @@
@typeparam NumberType