Expand all

ve.ui.EditCheckScrollIntoViewWidget

Extends

Constructor

new ve.ui.EditCheckScrollIntoViewWidget([config]) #

EditCheckScrollIntoViewWidget class.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Source:
EditCheckScrollIntoViewWidget class.

Methods

clear() #

Clear tracked elements

observe(element) #

Observe an element for visibility changes

Parameters:

Name Type Description
element Element
Source:
Observe an element for visibility changes

observeFullPageButton(element) #

Observe full page button for visibility changes

Parameters:

Name Type Description
element Element
Source:
Observe full page button for visibility changes

setOutsideSectionState(state) #

Set state for suggestions outside current section. For use on mobile.

Parameters:

Name Type Description
state Object | null

State object

Properties:
Name Type Description
enabled boolean

Whether to show button (disabled when suggestion exists in current section)

hasAbove boolean

Suggestions exist above current section

hasBelow boolean

Suggestions exist below current section

Source:
Set state for suggestions outside current section.

update() #

Update classes based on the visibility of the tracked elements.

Source:
Update classes based on the visibility of the tracked elements.