focusable.d.ts 616 B

1234567891011121314151617
  1. /**
  2. * Returns whether the element is hidden.
  3. * @param $elem
  4. */
  5. export declare function isHidden($elem: HTMLElement): boolean;
  6. /**
  7. * Returns whether the element is disabled.
  8. * @param $elem
  9. */
  10. export declare function isDisabled($elem: HTMLElement): boolean;
  11. /**
  12. * Determines whether an element is focusable.
  13. * Read more here: https://stackoverflow.com/questions/1599660/which-html-elements-can-receive-focus/1600194#1600194
  14. * Or here: https://stackoverflow.com/questions/18261595/how-to-check-if-a-dom-element-is-focusable
  15. * @param $elem
  16. */
  17. export declare function isFocusable($elem: HTMLElement): boolean;