UNPKG

bs-datatable

Version:

A data table based on Bootstrap 5

53 lines (52 loc) 1.72 kB
import { BSDataTableBase } from "./BSDataTableBase"; import { BSDataTableInput } from "./BSDataTableInput"; import { BSDataTableCell } from "./BSDataTableCell"; import { BSDataTableColDefinition, BSRowOptions } from "../commonTypes/common-types"; export declare class BSDataTableRow extends BSDataTableBase { /** * @type BSDataTableCell[] */ cells: BSDataTableCell[]; options: BSRowOptions; constructor(options: BSRowOptions); render(): void; get rowCategory(): string; set rowCategory(v: string); /** * * @param {BSDataTableCell} cell */ addCell(cell: BSDataTableCell): void; /** * @param {BSDataTableCell[]} cells */ addCells(cells: any[]): void; focusRow(): void; getInputs(): BSDataTableInput[]; createInputFor(model: BSDataTableColDefinition, readonly: boolean): BSDataTableCell; /** * @param {BSDataTableColDefinition} model */ createHeaderFor(model: BSDataTableColDefinition): BSDataTableCell; getVisibleInputs(): BSDataTableInput[]; /** * This function returns the row containing the actual inputs * @returns A row record containing actual inputs */ getRowDataExt(): any; get rType(): "data" | "head"; get rowIndex(): number; set rowIndex(index: number); /** * This function returns an object which contains the values of the all the inputs in the row * @returns Retuns an object which contains the values of the inputs */ getRowData(): any; get isRowDirty(): boolean; set isRowDirty(val: boolean); /** * * @returns {BSDataTableRow} */ clone(): BSDataTableRow; }