Methods
(static) $()
Safe element selector with error handling
.Safe element selector with error handling
(static) $$()
Select all elements with error handling
.Select all elements with error handling
(static) addClass()
Add CSS class with optional timeout
.Add CSS class with optional timeout
(static) addListener()
Add event listener with automatic cleanup
.Add event listener with automatic cleanup
(static) announce()
Announce to screen readers
.Announce to screen readers
(static) createElement()
Create element with attributes and content
.Create element with attributes and content
(static) debounce()
Debounce event handler
.Debounce event handler
(static) delegate()
Add event delegation
.Add event delegation
(static) escapeHtml()
Escape HTML content
.Escape HTML content
(static) formatBytes()
Format bytes to human readable
.Format bytes to human readable
(static) formatDuration()
Format duration to human readable
.Format duration to human readable
(static) getFormData()
Get form data as object
.Get form data as object
(static) hasClass()
Check if element has class
.Check if element has class
(static) hide()
Hide element with optional animation
.Hide element with optional animation
(static) hideLoading()
Hide loading overlay
.Hide loading overlay
(static) removeClass()
Remove CSS class
.Remove CSS class
(static) resetForm()
Reset form with custom values
.Reset form with custom values
(static) scrollToElement()
Smooth scroll to element
.Smooth scroll to element
(static) setAriaAttributes()
Set ARIA attributes
.Set ARIA attributes
(static) setButtonLoading()
Set loading state on button
.Set loading state on button
(static) setFormData()
Set form data from object
.Set form data from object
(static) show()
Show element with optional animation
.Show element with optional animation
(static) showLoading()
Show loading overlay
.Show loading overlay
(static) showMessage()
Show message in a container
.Show message in a container
(static) showToast()
Show toast notification
.Show toast notification
(static) throttle()
Throttle event handler
.Throttle event handler
(static) toggle()
Toggle element visibility
.Toggle element visibility
(static) toggleClass()
Toggle CSS class
.Toggle CSS class
(static) truncate()
Truncate text with ellipsis
.Truncate text with ellipsis