Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ALineUp

Hierarchy

Implements

Index

Constructors

constructor

  • new ALineUp(node: HTMLElement, data: DataProvider, ignoreIncompatibleBrowser: boolean): ALineUp

Events

highlightChanged

  • highlightChanged(dataIndex: number): void
  • emitted when the highlight changes

    asmemberof

    ALineUp

    Parameters

    • dataIndex: number

      the highlghted data index or -1 for none

    Returns void

selectionChanged

  • selectionChanged(dataIndices: number[]): void
  • emitted when the selection changes

    asmemberof

    ALineUp

    Parameters

    • dataIndices: number[]

      the selected data indices

    Returns void

Properties

data

data: DataProvider

isBrowserSupported

isBrowserSupported: boolean

node

node: HTMLElement

Static EVENT_HIGHLIGHT_CHANGED

EVENT_HIGHLIGHT_CHANGED: "highlightChanged" = "highlightChanged"

Static EVENT_SELECTION_CHANGED

EVENT_SELECTION_CHANGED: "selectionChanged" = DataProvider.EVENT_SELECTION_CHANGED

Methods

destroy

  • destroy(): void

dump

  • dump(): any

Abstract getHighlight

  • getHighlight(): number

getSelection

  • getSelection(): number[]

on

setDataProvider

  • setDataProvider(data: DataProvider, dump?: any): void
  • Parameters

    • data: DataProvider
    • Optional dump: any

    Returns void

Abstract setHighlight

  • setHighlight(dataIndex: number, scrollIntoView: boolean): boolean
  • Parameters

    • dataIndex: number
    • scrollIntoView: boolean

    Returns boolean

setSelection

  • setSelection(dataIndices: number[]): void

sortBy

  • sortBy(column: string | function, ascending?: boolean): boolean
  • sorts LineUp by he given column

    Parameters

    • column: string | function

      callback function finding the column to sort

    • Default value ascending: boolean = false

    Returns boolean

Abstract update

  • update(): void