Client-Side API Reference > FlexSheet > wijmo.grid.sheet > FlexSheetPanel Class |
constructor(grid: FlexGrid, cellType: CellType, rows: RowCollection, cols: ColumnCollection, element: HTMLElement): FlexSheetPanel
Initializes a new instance of the FlexSheetPanel class.
The FlexGrid object that owns the panel.
The type of cell in the panel.
The rows displayed in the panel.
The columns displayed in the panel.
The HTMLElement that hosts the cells in the control.
Gets a CellRange that indicates the range of cells currently visible on the panel.
getCellBoundingRect(r: number, c: number, raw?: boolean): Rect
Gets a cell's bounds in viewport coordinates.
The returned value is a Rect object which contains the position and dimensions of the cell in viewport coordinates. The viewport coordinates are the same as those used by the getBoundingClientRect method.
getCellData(r: number, c: any, formatted: boolean): any
Gets the value stored in a cell in the panel.
The row index of the cell.
The index, name, or binding of the column that contains the cell.
Whether to format the value for display.
getCellElement(r: number, c: number): HTMLElement
Gets the element that represents a cell within this GridPanel.
If the cell is not currently in view, this method returns null.
The index of the row that contains the cell.
The index of the column that contains the cell.
getSelectedState(r: number, c: number, rng: CellRange): SelectedState
Gets a SelectedState value that indicates the selected state of a cell.
Overrides this method to support multiple selection showSelectedHeaders for FlexSheet
Specifies Row index of the cell.
Specifies Column index of the cell.
CellRange that contains the cell that would be included.
setCellData(r: number, c: any, value: any, coerce?: boolean): boolean
Sets the content of a cell in the panel.
The index of the row that contains the cell.
The index, name, or binding of the column that contains the cell.
The value to store in the cell.
A value indicating whether to change the value automatically to match the column's data type.
Defines the extension of the GridPanel class, which is used by FlexSheet where the base FlexGrid class uses GridPanel. For example, the cells property returns an instance of this class.