Table of Contents

Class KeyInterceptorOptions

Namespace
MudBlazor.Services
Assembly
MudBlazor.dll

Configuration options for key interception.

public class KeyInterceptorOptions
Inheritance
KeyInterceptorOptions
Inherited Members
Extension Methods

Constructors

KeyInterceptorOptions()

Initializes a new instance of the KeyInterceptorOptions class.

public KeyInterceptorOptions()

KeyInterceptorOptions(string, params KeyOptions[])

Initializes a new instance of the KeyInterceptorOptions class with the specified target class and key options.

public KeyInterceptorOptions(string targetClass, params KeyOptions[] keys)

Parameters

targetClass string

The CSS class of the target HTML element.

keys KeyOptions[]

The key options to intercept.

KeyInterceptorOptions(string, bool, params KeyOptions[])

Initializes a new instance of the KeyInterceptorOptions class with the specified target class, key options, and logging option.

public KeyInterceptorOptions(string targetClass, bool enableLogging = false, params KeyOptions[] keys)

Parameters

targetClass string

The CSS class of the target HTML element.

enableLogging bool

Specifies whether resize events should be logged in the browser's console.

keys KeyOptions[]

The key options to intercept.

Properties

EnableLogging

Specifies whether resize events should be logged in the browser's console.

public bool EnableLogging { get; init; }

Property Value

bool

Keys

A list of key options that define the keys to intercept and their respective configurations.

public IReadOnlyList<KeyOptions> Keys { get; init; }

Property Value

IReadOnlyList<KeyOptions>

TargetClass

The CSS class of the target HTML element that should be observed for keyboard events.

public string? TargetClass { get; init; }

Property Value

string

Remarks

Note: This must be a single class name.