@page "/keydata/{FromRoute}" @using BlazorColorPicker @inject NavigationManager NavigationManager @inject IStringLocalizer i18n
@if ("Found".Equals(FromRoute)) {

@i18n["FoundBike"]

} else {

@i18n["MissingBike"]

}
@colorValue @*@selectedColor?.RGB*@
@context?.Name
Mountain-Bike City-Bike Child-Bike
@i18n["Cancel"]
@i18n["Continue"]
@code { [Parameter] public string FromRoute { get; set; } string value; string colorValue; ColorItem selectedColor; private void Next() { NavigationManager.NavigateTo("account/" + @FromRoute); } private void Cancel() { NavigationManager.NavigateTo("caritas_services"); } ColorItem[] colorItems = new[] { new ColorItem(3, "Blue","0,0,255"), new ColorItem(14, "Brown", "165,42,42"), new ColorItem(4, "Yellow", "255, 255, 0"), }; class ColorItem { public int Index { get; } public string Name { get; } public string RGB { get; } public ColorItem(int index, string name, string rgb) { Index = index; Name = name; RGB = rgb; } } }