• import { windowJumpToHash } from '@src/hylo-components/utils/usefull/usefull';

    Moves the window vertically to an element with the given hash as id.

    Doesn't do anything if hash is empty or just "#".

    Parameters

    • hash: string | HTMLElement

      a hash id with or without leading "#" or the HTMLElement to scroll to

    • offset: number = 0

      an optional offset in pixel

    • focus: boolean = false

      focuses the target element when scrolling finished

    • set_hash: boolean = false

      sets the hash in the url of the browser when scrolling finished

    • create_history: boolean = false

      creates a new browser history entry instead of replacing the current with the new hash tag

    Returns void

Generated using TypeDoc