Interface AreaModelIf

This is the model interface for an area model. A table can have three of these models, one for the header, one for the body , and one for the footer. An AreaModelIf gives you information about the rows and cell contents. The column information is given by the TableModelIf.

Hierarchy

  • AreaModelIf

Implemented by

Properties

areaIdent: AreaIdent

The identifier for one of the areas: header, body, footer.

rowSelectionModel: undefined | CheckboxModelIf<any>

A model and controller for a row checkbox selection

Methods

  • Method for moving a column from position sourceColumnIndex to targetColumnIndex.

    Parameters

    • sourceColumnIndex: number
    • targetColumnIndex: number

    Returns void

  • This method can be used to return a list of css classes for the given cell

    Parameters

    • rowIndex: number

      row index of the cell

    • columnIndex: number

      column index of the cell

    Returns string[]

  • This method can be used to return an object with css style information for the given cell

    Parameters

    • rowIndex: number

      row index of the cell

    • columnIndex: number

      column index of the cell

    Returns undefined | {
        [key: string]: string;
    }

  • This return value is internally used to optimize the render performance. Set this value to the lowest possible value. If the model has no colspan, a value of 0 would be good. The dafault is 32. If your model has a colspan cell greater 32, don't forget to increase this value.

    Returns number

  • This return value is internally used to optimize the render performance. Set this value to the lowest possible value. If the model has no rowspan, a value of 0 would be good. The default is 32. If your model has a rowspan cell greater 32, don't forget to increase this value.

    Returns number

  • Return the y-position in pixel of the top of the row on the scrollpane. For big tables it can be a big value (greate than the height of the viewport).

    Parameters

    • rowIndex: number

    Returns number

Generated using TypeDoc