Skip to content

Functions

Adds css class to the html element.

▸ addCssClass(element: HTMLElement,className: string): void

  • element: HTMLElement - The element to add css class to.
  • className: string - The name of the css class to be added.

Returns void


Creates ands adds a new [[HTMLElement]] to “parent”

▸ addElement(parent: HTMLElement,tag: string,options?: any): HTMLElement

  • parent: HTMLElement - The element to add new element to.
  • tag: string - Html tag of the new element.
  • options: any, Optional - The options. In particular, options.cssClass sets the new element class.

Returns HTMLElement - New element.


Converts options from old 4.x format to [[EqViewOptions]]

▸ convertOldOptions(defaultOptions: EqViewOptions): EqViewOptions

  • defaultOptions: EqViewOptions - The default [[EqViewOptions]] object to be extended by old options.

Returns EqViewOptions - Converted [[EqViewOptions]] object.


Hides the html element.

▸ hideElement(element: HTMLElement): void

  • element: HTMLElement - The element to be hidden.

Returns void


Checks if element is visible

▸ isVisible(element: HTMLElement): boolean

  • element: HTMLElement - The element to check.

Returns boolean - true if visible, otherwise - false.


Creates the paging navigation element.

▸ renderPageNavigator(options: EqPagingOptions): HTMLElement

Returns HTMLElement - Created [[HTMLElement]].


Shows the html element.

▸ showElement(element: HTMLElement,display?: string): void

  • element: HTMLElement - The element to be shown.
  • display: string, Optional - The value of “display” style to be set. Default value is “block”.

Returns void


Hides the “first” element and shows the “second”.

▸ toggleVisibility(first: HTMLElement,second: HTMLElement,options: any): void

  • first: HTMLElement - The element to be hidden.
  • second: HTMLElement - The element to be shown.
  • options: any - The options. The following options are applied:
  • display - the value of “display” style to be set. Default value is “block”
  • duration - the duration of fading in and out
  • complete - the callback to be called when toggle is complete

Returns void


Wraps all the elements inside “parent” by “wrapper” element

▸ wrapInner(parent: HTMLElement,wrapper: HTMLElement): void

  • parent: HTMLElement - The element to add wrapper to.
  • wrapper: HTMLElement - The element that will wrap child elements.

Returns void