Maanfee JsInterop is a JavaScript interop library for Blazor applications that provides jQuery-like DOM manipulation capabilities through C#.
- 🎬 DOM Selection: Query single or multiple elements using CSS selectors
- 🔧 Content Manipulation: Get/set text content, HTML content, and input values
- 📦 Fluent API: Chainable methods for concise code
- ⚡ Type Safety: Strongly typed return values
- 🎛️ Async Support: Full asynchronous operation support
- 🎯 Frame Accuracy - Precise frame navigation and seeking capabilities
- 🖥️ Fullscreen API - Comprehensive fullscreen control with event support
- 💾 Local Storage - Full local storage operations with type safety
QuerySelector(string selector)- Select single elementQuerySelectorAll(string selector)- Select multiple elements
TextAsync<T>()- Get text content (returns string or IList)TextAsync(string text)- Set text content
HTMLAsync<T>()- Get HTML content (returns string or IList)HTMLAsync(string html)- Set HTML content
ValAsync<T>()- Get input value (returns string or IList)ValAsync(string value)- Set input value
AttrAsync<T>(string attributeName)- Get attribute value (returns string or IList)AttrAsync(string attributeName, string attributeValue)- Set attribute value
ClickAsync()- Trigger click event on selected elements
RequestFullscreenAsync(string elementId = null)- Request fullscreen modeExitFullscreenAsync()- Exit fullscreen modeToggleFullscreenAsync(string elementId = null)- Toggle fullscreen modeIsFullscreenAsync()- Check if fullscreen is activeGetFullscreenElementAsync()- Get current fullscreen element ID
FullscreenChanged- Event raised when fullscreen state changes
ClearAsync()- 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