Library Blazor Components ListBox Reference Classes ListBox ItemsSource ItemsSource Specifies items to be shown inside listbox. razor[Parameter] public IEnumerable<T>? ItemsSource { get; set; } Example razor<ListBox T="string" ItemsSource="Items" /> @code { private List<string> Items = new() { "item 1", "item 2", "item 3" }; }
ItemsSource Specifies items to be shown inside listbox. razor[Parameter] public IEnumerable<T>? ItemsSource { get; set; } Example razor<ListBox T="string" ItemsSource="Items" /> @code { private List<string> Items = new() { "item 1", "item 2", "item 3" }; }