@using Microsoft.AspNetCore.Blazor
Initially blank: @textboxInitiallyBlankValue
Initially populated: @textboxInitiallyPopulatedValue
Initially blank: @textAreaIntiallyBlankValue
Initially populated: @textAreaIntiallyPopulatedValue
Initially unchecked: @checkboxInitiallyUncheckedValue
Initially checked: @checkboxInitiallyCheckedValue
@selectValue
@functions { string textboxInitiallyBlankValue = null; string textboxInitiallyPopulatedValue = "Hello"; string textAreaIntiallyBlankValue = null; string textAreaIntiallyPopulatedValue = "Hello"; bool checkboxInitiallyUncheckedValue = false; bool checkboxInitiallyCheckedValue = true; bool includeFourthOption = false; enum SelectableValue { First, Second, Third, Fourth } SelectableValue selectValue = SelectableValue.Second; void AddAndSelectNewSelectOption(UIMouseEventArgs e) { includeFourthOption = true; selectValue = SelectableValue.Fourth; } }