Class: DynamicInlineScroll

DynamicInlineScroll()

Appends list item elements to dropdown menus with inline-scrollers on scroll events to improve page loading performance.

Constructor

new DynamicInlineScroll()

Source:

Extends

  • Component

Members

cur :string

Current page index.
Type:
  • string
Source:

curParam :string

URL parameter of the current page.
Type:
  • string
Source:

forcePost :boolean

Forces a form post when a page on the dropdown menu is clicked.
Type:
  • boolean
Source:

formName :string

Form name.
Type:
  • string
Source:

initialPages :string

Number of pages loaded to the inline-scroll dropdown menu for the first page load.
Type:
  • string
Source:

jsCall :string

JavaScript call.
Type:
  • string
Source:

namespace :string

Namespace.
Type:
  • string
Source:

pages :string

Total number of pages.
Type:
  • string
Source:

randomNamespace :string

Random namespace.
Type:
  • string
Source:

url :string

URL.
Type:
  • string
Source:

urlAnchor :string

URL anchor.
Type:
  • string
Source:

Methods

(protected) addListItem_(listElement, pageIndex)

Dynamically adds list item elements to the dropdown menu.
Parameters:
Name Type Description
listElement element The list element's DOM node.
pageIndex number The Index of the page with an inline-scroller.
Source:

attached()

Source:

created()

Source:

detached()

Source:

(protected) getHREF_(pageIndex) → {string}

Returns the href attribute value for each page.
Parameters:
Name Type Description
pageIndex number The Index of the page.
Source:
Returns:
The href value as a string.
Type
string

(protected) getNumber_(val) → {number}

Returns the numerical value of the parameter passed in.
Parameters:
Name Type Description
val string | Object The string or object to be converted to a number.
Source:
Returns:
The parameter's numberical value.
Type
number

(protected) handleListItemClick_(event)

Handles the click event of the dynmaically added list item, preventing the default behavior and submitting the search container form.
Parameters:
Name Type Description
event Event The click event of the dynamically added list item.
Source:

(protected) onScroll_(event)

An event triggered when a dropdown menu with an inline-scroller is scrolled. This dynamically adds list item elements to the dropdown menu as it is scrolled down.
Parameters:
Name Type Description
event Event The scroll event triggered by scrolling a dropdown menu with an inline-scroller.
Source: