Allowing group of columns (#40325)

* Allowing group of columns

A column can be a "group" of columns (Example: group header column -> Measurements, grouped column -> Length, Width, Height)

* Update tabulator-tables-tests.ts

Added trailing whitespaces

* Update tabulator-tables-tests.ts

Fixing whitespaces

* Update tabulator-tables-tests.ts

Removed trailing whitespace
This commit is contained in:
simusr2
2019-11-12 21:56:43 +01:00
committed by Pranav Senthilnathan
parent 64f9d8cef4
commit 3d9199856b
2 changed files with 12 additions and 1 deletions

View File

@@ -1051,8 +1051,11 @@ You can pass an optional additional property with sorter, sorterParams that shou
/** Show/Hide a particular column in the HTML output*/
htmlOutput?: boolean;
/**If you don't want to show a particular column in the clipboard output you can set the clipboard property in its column definition object to false */
/** If you don't want to show a particular column in the clipboard output you can set the clipboard property in its column definition object to false */
clipboard?: boolean;
/** A column can be a "group" of columns (Example: group header column -> Measurements, grouped column -> Length, Width, Height) */
columns?: ColumnDefinition[];
}
interface CellCallbacks {

View File

@@ -525,3 +525,11 @@ colDef.editor = (cell, onRendered, success, cancel, editorParams) => {
const successful: boolean = success('test');
return editor;
};
let groupColDef: Tabulator.ColumnDefinition = {
title: 'Full name', field: '',
columns: [
{title: "First name", field: ''},
{title: "Last name", field: ''}
]
};