You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, one can toggle the Blazorise.Options.ChangeTextOnKeyPress value in Statup.ConfigureSerices to control the way all TextEdit and NumericEdit instances behave in an application. For server-side applications, we usually want this set to false to support a user rapidly typing long text strings. However, there are common cases where we want the UI to update on each key stroke ( vs waiting for a control to lose focus). Examples are: update search results as the user types; update a price calculator as the user tweaks a numeric value. Perhaps this would also be valuable on Slider as well.
Suggested implementation would be something like a TextChangedMode or BindValueMode property on TextEdit and NumericEdit of type Blazorise.TextChangedMode ( enum TextChangedMode { OnLostFocus = 0, OnInput = 1 }
The text was updated successfully, but these errors were encountered:
Thank you for writing the ticket. I just realized there are KeyDown, KeyPress and KeyUp events on TextEdit. Numeric still lacks similar events. Hopefully that will work for you for now, until I add the requested feature for all input components.
I tried the KeyX events. While they tell me what key the user hit, I don't see a way to access the total string that the user sees. I was able to work around this by subclassing NumericEdit and flipping Options.ChangeTextOnKeyPress to true in MyNumericEdit.OnInitialized().
Currently, one can toggle the Blazorise.Options.ChangeTextOnKeyPress value in Statup.ConfigureSerices to control the way all TextEdit and NumericEdit instances behave in an application. For server-side applications, we usually want this set to false to support a user rapidly typing long text strings. However, there are common cases where we want the UI to update on each key stroke ( vs waiting for a control to lose focus). Examples are: update search results as the user types; update a price calculator as the user tweaks a numeric value. Perhaps this would also be valuable on Slider as well.
Suggested implementation would be something like a TextChangedMode or BindValueMode property on TextEdit and NumericEdit of type Blazorise.TextChangedMode ( enum TextChangedMode { OnLostFocus = 0, OnInput = 1 }
The text was updated successfully, but these errors were encountered: