Class: scrllr

scrllr

Simple container div for masking away native scrollbars

new scrllr(options){msk}

Initializes a new scrllr instance.
Name Type Description
options Object Options used to customize the scrllr
Name Type Default Description
parent * document.body optional Element which the scrllr's container element is appended
id String optional The id of the instance. Auto-generated when not provided
attr Object optional Attributes to apply to the scrllr's container element.
css Object optional CSS Properties to apply to the scrllr's container element
scrllbr Object optional Options used to create the scrllr's scrllbr instance
scrllmsk Object optional Options used to create the scrllr's scrllmsk instance
Returns:
Type Description
msk A new scrllr instance.

Requires

Members

readonlybrscrllbr

The scrllbr element

readonlycontainerscrllmsk

The container element

readonlymskscrllmsk

The scrllmsk element

Methods

staticscrllr.getElInstance(el){scrllr}

returns the scrllr instance associated with the provided element's id attribute
Name Type Description
el Element The element with the lookup id
Returns:
Type Description
scrllr The associate scrllr, if it exists

staticscrllr.getInstance(id){scrllr}

returns the scrllr instance associated with the id
Name Type Description
id String The lookup id
Returns:
Type Description
scrllr The associate scrllr, if it exists