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

isHidden

v0.0.5

Checks if an element is hidden via visibility: hidden or display: none up the DOM tree

Source

Signature

ts
declare function isHidden(node: HTMLElement, upTo?: HTMLElement): boolean;

Parameters

ParameterTypeDefaultDescription
nodeHTMLElement——
upTo?HTMLElement——

Returns

boolean
on this page
  • Signature
  • Parameters
  • Returns