mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 02:30:12 +00:00
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:
committed by
Pranav Senthilnathan
parent
64f9d8cef4
commit
3d9199856b
5
types/tabulator-tables/index.d.ts
vendored
5
types/tabulator-tables/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
@@ -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: ''}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user