❯ ~/robonen/tools
core
  • stdlibapi
  • platformapi
    ❯
    guide
    • Introduction
    • ❯assignStyle
    • ❯createGuardAttrs
    • ❯decodeCookieValue
    • ❯dispatchAnimationEvent
    • ❯encodeCookieName
    • ❯encodeCookieValue
    • ❯findFirstVisible
    • ❯findLastVisible
    • ❯focus
    • ❯focusFirst
    • ❯focusGuard
    • ❯getActiveElement
    • ❯getAnimationName
    • ❯getCookieValue
    • ❯getTabbableCandidates
    • ❯getTabbableEdges
    • ❯getTranslate
    • ❯hideOthers
    • ❯isAnimatable
    • ❯isEventTarget
    • ❯isHidden
    • ❯isInView
    • ❯isIOS
    • ❯isIPad
    • ❯isIPhone
    • ❯isMac
    • ❯isMobileFirefox
    • ❯isSafari
    • ❯isSelectableInput
    • ❯onAnimationSettle
    • ❯parseCookieString
    • ❯pxValue
    • ❯readInputState
    • ❯resetStyle
    • ❯serializeCookie
    • ❯setStyle
    • ❯shouldSuspendUnmount
    • ❯testUserAgentPlatform
    • ❯writeInputState
  • fetchapi
  • encodingapi
  • crdtapi
vue
  • vueapi
  • writekitapi
  • primitivesui
configs
  • eslintguide
  • tsconfigguide
  • tsdownguide
infra
  • renovateguide
@robonen/platform/getTabbableEdges
fn

getTabbableEdges

v0.0.5tested

Returns the first and last tabbable elements inside a container

Source Tests

Signature

ts
export function getTabbableEdges(container: HTMLElement):{ ... }

Parameters

ParameterTypeDefaultDescription
containerHTMLElement——

Returns

{ first: HTMLElement | undefined; last: HTMLElement | undefined }
PropertyTypeDefaultDescription
firstHTMLElement | undefined——
lastHTMLElement | undefined——
on this page
  • Signature
  • Parameters
  • Returns