Class: DomUtils

DomUtils()

DOM Utilities for Semantic Memory Workbench Helper functions for DOM manipulation, event handling, and UI interactions

Constructor

new DomUtils()

Source:

Methods

(static) $()

Safe element selector with error handling

.

Safe element selector with error handling

Source:

(static) $$()

Select all elements with error handling

.

Select all elements with error handling

Source:

(static) addClass()

Add CSS class with optional timeout

.

Add CSS class with optional timeout

Source:

(static) addListener()

Add event listener with automatic cleanup

.

Add event listener with automatic cleanup

Source:

(static) announce()

Announce to screen readers

.

Announce to screen readers

Source:

(static) createElement()

Create element with attributes and content

.

Create element with attributes and content

Source:

(static) debounce()

Debounce event handler

.

Debounce event handler

Source:

(static) delegate()

Add event delegation

.

Add event delegation

Source:

(static) escapeHtml()

Escape HTML content

.

Escape HTML content

Source:

(static) formatBytes()

Format bytes to human readable

.

Format bytes to human readable

Source:

(static) formatDuration()

Format duration to human readable

.

Format duration to human readable

Source:

(static) getFormData()

Get form data as object

.

Get form data as object

Source:

(static) hasClass()

Check if element has class

.

Check if element has class

Source:

(static) hide()

Hide element with optional animation

.

Hide element with optional animation

Source:

(static) hideLoading()

Hide loading overlay

.

Hide loading overlay

Source:

(static) removeClass()

Remove CSS class

.

Remove CSS class

Source:

(static) resetForm()

Reset form with custom values

.

Reset form with custom values

Source:

(static) scrollToElement()

Smooth scroll to element

.

Smooth scroll to element

Source:

(static) setAriaAttributes()

Set ARIA attributes

.

Set ARIA attributes

Source:

(static) setButtonLoading()

Set loading state on button

.

Set loading state on button

Source:

(static) setFormData()

Set form data from object

.

Set form data from object

Source:

(static) show()

Show element with optional animation

.

Show element with optional animation

Source:

(static) showLoading()

Show loading overlay

.

Show loading overlay

Source:

(static) showMessage()

Show message in a container

.

Show message in a container

Source:

(static) showToast()

Show toast notification

.

Show toast notification

Source:

(static) throttle()

Throttle event handler

.

Throttle event handler

Source:

(static) toggle()

Toggle element visibility

.

Toggle element visibility

Source:

(static) toggleClass()

Toggle CSS class

.

Toggle CSS class

Source:

(static) truncate()

Truncate text with ellipsis

.

Truncate text with ellipsis

Source: