Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "content/state/hidden"

Index

Interfaces

Type aliases

Variables

Functions

Type aliases

Hide

Hide: function

Hide

Type declaration

    • (): H
    • Returns H

IsHidden

IsHidden: function

IsHidden

Type declaration

    • (): boolean
    • Returns boolean

Show

Show: function

Show

Type declaration

    • (): H
    • Returns H

Toggle

Toggle: function

Toggle

Type declaration

    • (): H
    • Returns H

Variables

Const HIDDEN

HIDDEN: "-hidden" = "-hidden"

HIDDEN means an element should not be visible but not removed from the DOM.

Functions

Const hide

  • hide<H>(h: H): (Anonymous function)
  • hide the Hidable.

    This is acheived by adding a 'hidden' class name to an HTMLElement retrieved by id.

    Type parameters

    Parameters

    • h: H

    Returns (Anonymous function)

Const isHidden

  • isHidden(fn: function): (Anonymous function)
  • visible queries whether the Hidable is visible or not.

    It retrieves an HTMLElement by id and checks whether it does not have a hidden class.

    Parameters

    • fn: function
        • (): Maybe<HTMLElement>
        • Returns Maybe<HTMLElement>

    Returns (Anonymous function)

Const show

  • show<H>(h: H): (Anonymous function)
  • show the Hidable

    This is acheived by removing a 'hidden' class name to an HTMLElement retrieved by id.

    Type parameters

    Parameters

    • h: H

    Returns (Anonymous function)

Const toggle

  • toggle<H>(h: H): (Anonymous function)

Generated using TypeDoc