Maanfee JsInterop is a lightweight JavaScript interop library for Blazor applications that provides jQuery-like DOM manipulation capabilities through C#.
$ dotnet add package Maanfee.JsInteropMaanfee JsInterop is a JavaScript interop library for Blazor applications that provides jQuery-like DOM manipulation capabilities through C#.
QuerySelector(string selector) - Select single elementQuerySelectorAll(string selector) - Select multiple elementsTextAsync<T>() - Get text content (returns string or IList)TextAsync(string text) - Set text contentHTMLAsync<T>() - Get HTML content (returns string or IList)HTMLAsync(string html) - Set HTML contentValAsync<T>() - Get input value (returns string or IList)ValAsync(string value) - Set input valueAttrAsync<T>(string attributeName) - Get attribute value (returns string or IList)AttrAsync(string attributeName, string attributeValue) - Set attribute valueClickAsync() - Trigger click event on selected elementsRequestFullscreenAsync(string elementId = null) - Request fullscreen modeExitFullscreenAsync() - Exit fullscreen modeToggleFullscreenAsync(string elementId = null) - Toggle fullscreen modeIsFullscreenAsync() - Check if fullscreen is activeGetFullscreenElementAsync() - Get current fullscreen element IDFullscreenChanged - Event raised when fullscreen state changesClearAsync() - Clear all local storage dataKeyAsync(int index) - Get key name at specified indexGetAsync<T>(string key) - Get stored value by keyKeysAsync() - Get all storage keysLengthAsync() - Get number of stored itemsSetAsync<T>(string key, T value) - Store value with keyRemoveAsync(string key) - Remove item by key