@eclipse-scout/core
Version:
Eclipse Scout runtime
28 lines • 1.29 kB
TypeScript
/// <reference types="jquery" />
import { BooleanColumnModel, Cell, CheckBoxField, Column, TableRow } from '../../index';
/**
* A column holding boolean values represented by check boxes.
*/
export declare class BooleanColumn extends Column<boolean> implements BooleanColumnModel {
model: BooleanColumnModel;
triStateEnabled: boolean;
constructor();
protected _formatValue(value: boolean, row?: TableRow): string;
buildCell(cell: Cell<boolean>, row: TableRow): string;
$checkBox($row: JQuery): JQuery;
protected _cellCssClass(cell: Cell<boolean>, tableNode?: boolean): string;
/**
* This function does intentionally _not_ call the super function (prepareCellEdit) because we don't want to
* show an editor for BooleanColumns when user clicks on a cell.
*/
onMouseUp(event: JQuery.MouseUpEvent, $row: JQuery): void;
/**
* In a remote app this function is overridden, the default implementation is the local case.
* @see TableAdapter
*/
protected _toggleCellValue(row: TableRow, cell: Cell<boolean>): void;
protected _createEditor(row: TableRow): CheckBoxField;
cellTextForGrouping(row: TableRow): string;
setTriStateEnabled(triStateEnabled: boolean): void;
}
//# sourceMappingURL=BooleanColumn.d.ts.map