Input History

Unique scribe library full of medieval and old scrolls

Do you ever find yourself reentering some words or part numbers? Maybe it was a keyword or two for a search. Or maybe you need a part number you entered previously but can’t remember what it was. It’s happened to me enough that  I wished I could see the history of what I entered before. Which is why I created a Blazor component to do just that.

The component, I’ve aptly named InputHistoryBCA ,maintains a list of previous string inputs in the browser’s local storage, so they’ll persist until you clear them. It also utilizes ProtectedLocalStorage class, which ASP.NET Core now has built-in, to provide some security by encrypting the values. There’s also a button to summon a modal for editing the history when it becomes obsolete or bloated.

I plan on adding search to the modal to make it easier to find the entry to edit along with sorting options by date and by value, descending and ascending. I’ll save those for next time.

Please play with a live demonstration of the component and take a look at the source code on the Blazor Component Authority Demonstration Application.

I hope you find it useful or it provides some inspiration. Please leave a comment if you like this component or have suggestions for improvement. Thanks for reading.

Site Footer

Sliding Sidebar