canvas-datagrid icon indicating copy to clipboard operation
canvas-datagrid copied to clipboard

treeGridAttributes is not used

Open jswolf19 opened this issue 3 years ago • 1 comments

Expected behavior and actual behavior.

The treeGridAttributes of the args object passed to canvasDatagrid are not used to create treeGrids. When creating a treeGrid, self.args.treeGridAttributes is used, but this is never set. I believe self.treeGridAttributes is what should be used.

Specifications like the version of the project, operating system, or hardware.

tested in Firefox and Chrome http://jsfiddle.net/jswolf19/kcr9Lje2/

jswolf19 avatar Dec 06 '21 04:12 jswolf19

Workaround:

var grid = canvasDatagrid(args);
grid.args.treeGridAttributes = {
    ...
};

jswolf19 avatar Dec 06 '21 04:12 jswolf19