Interface AutoHideConfig

interface AutoHideConfig {
    delay?: number;
    id?: string;
    remove?: boolean;
    selector?: string;
}

Properties

delay?: number

How long to wait before hiding or removing the matched elements.

3000
id?: string

An ID for the widget so that it can be looked up by element and ID using AutoHide.get. It has to be unique for each element, but you can use the same ID on different elements.

undefined
remove?: boolean

If true, the matched elements are removed from the DOM instead of just hidden.

false
selector?: string

If given, then the elements to be hidden/removed are selected using the given selector starting at the container element. If not given, then the container element itself is the target to be hidden/removed.

E.g. if selector is p.message, then any newly added/changed <p> elements with class message nested under the container element will be auto-hidden/removed.

undefined