Table of Contents

Namespace MudBlazor.Services

Classes

BrowserWindowSize

Represents the size of a browser window.

JsEvent

Subscribe JS events of any element by html id

JsEventFactory
JsEventOptions
KeyInterceptor

This transient service binds itself to a parent element to observe the keys of one of its children. It can call preventDefault or stopPropagation directly on the JavaScript side for single key strokes / key combinations as per configuration. Furthermore, you can precisely subscribe single keystrokes or combinations and only the subscribed ones will be forwarded into .NET

KeyInterceptorFactory
KeyInterceptorOptions
KeyOptions

Configuration for preventDefault() and stopPropagation() control

For PreventDown, PreventUp, StopDown and StopUp the configuration which key combinations should match is a Javascript boolean expression.

Examples: For the examples, let's assume the Tab key was pressed. Note: for combinations of more than one modifier the following order of modifiers must be followed strictly: shift+ctrl+alt+meta

* Don't prevent key down: PreventDown=null or PreventDown="none" * Prevent key down of unmodified keystrokes such as "Tab": PreventDown="key+none" * Prevent key down of Tab and Ctrl+Tab PreventDown="key+none|key+ctrl" * Prevent key down of just Ctrl+Tab PreventDown="key+ctrl" * Prevent key down of Ctrl+Tab and Shift+Tab but not Shift+Ctrl+Tab: PreventDown="key+shift|key+ctrl" * Prevent key down of Shift+Ctrl+Tab and Ctrl+Tab but not Shift+Tab: PreventDown="key+shift+ctrl|key+ctrl" * Prevent any combination of key and modifiers, but not the unmodified key: PreventDown="key+any" * Prevent any combination of key and modifiers, even the unmodified key: PreventDown="any"

MudServicesConfiguration

Common services configuration required by MudBlazor components

ResizeObserver
ResizeObserver.SizeChangeUpdateInfo
ResizeObserverFactory
ResizeObserverOptions
ResizeOptions

Represents options for IBrowserViewportService.

ServiceCollectionExtensions

Interfaces

IJsEvent
IJsEventFactory
IKeyInterceptor
IKeyInterceptorFactory
IResizeObserver
IResizeObserverFactory

Delegates

KeyboardEvent
SizeChanged