SNIK Graph - v25.01
    Preparing search index...

    Class Filter

    Toggles the visibility of a set of nodes defined by a selector.

    Index

    Constructors

    Properties

    a: HTMLAnchorElement
    checkbox: HTMLInputElement
    cssClass: string
    label: string
    selector: string
    visible: boolean

    Methods

    • Set the visibility of the nodes selected by the filter. visible whether the nodes should be visible

      Parameters

      • visible: boolean

      Returns void

    • Add filter entries to the filter menu.

      Parameters

      • parent: HTMLElement

        the parent element to attach the entries to

      • as: HTMLAnchorElement[]

        an empty array of HTML anchors to be filled

      Returns void

    • Loads the visibility values and applies it to all filters.

      Parameters

      • json: object

        JSON representation of all filters

      Returns void

    • Saves the visibility values of all filters.

      Returns object

      JSON representation of all filters