Skip to content

Commit

Permalink
suppressGroupChangesColumnVisibility & colDef props
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGlazier committed Dec 5, 2024
1 parent 70cac2c commit 5f425e1
Show file tree
Hide file tree
Showing 24 changed files with 1,256 additions and 133 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
import { createGrid } from '@ag-grid-community/core';

createGrid(document.body, {
columnDefs: [],
rowData: [],
unSortIcon: true,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
unSortIcon: false,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {},
unSortIcon: true,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {},
unSortIcon: false,
});

createGrid(document.body, {
columnDefs: [
{ field: 'y', unSortIcon: false },
{ field: 'z' },
],
rowData: [],
defaultColDef: {
field: 'a',
unSortIcon: false,
},
unSortIcon: true,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {
field: 'a',
unSortIcon: true,
},
unSortIcon: false,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {
field: 'a',
unSortIcon: false,
},
unSortIcon: true,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {
field: 'a',
unSortIcon: true,
},
unSortIcon: false,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
sortingOrder: ['asc', 'desc'],
});


createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {
sortingOrder: ['asc', 'desc'],
},
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {},
sortingOrder: ['asc', 'desc'],
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {
sortingOrder: ['asc', 'desc'],
},
sortingOrder: ['asc', 'desc'],
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
import { createGrid } from '@ag-grid-community/core';

createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {
unSortIcon: true
},
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {
unSortIcon: false
},
});

createGrid(document.body, {
columnDefs: [],
rowData: [],

defaultColDef: {
unSortIcon: true
}
});

createGrid(document.body, {
columnDefs: [],
rowData: [],

defaultColDef: {
unSortIcon: false
}
});

createGrid(document.body, {
columnDefs: [
{ field: 'y', unSortIcon: false },
{ field: 'z' },
],

rowData: [],

defaultColDef: {
field: 'a',
unSortIcon: true,
}
});

createGrid(document.body, {
columnDefs: [],
rowData: [],

defaultColDef: {
field: 'a',
unSortIcon: false,
}
});

createGrid(document.body, {
columnDefs: [],
rowData: [],

defaultColDef: {
field: 'a',
unSortIcon: true,
}
});

createGrid(document.body, {
columnDefs: [],
rowData: [],

defaultColDef: {
field: 'a',
unSortIcon: false,
}
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {
sortingOrder: ['asc', 'desc']
},
});


createGrid(document.body, {
columnDefs: [],
rowData: [],
defaultColDef: {
sortingOrder: ['asc', 'desc'],
},
});

createGrid(document.body, {
columnDefs: [],
rowData: [],

defaultColDef: {
sortingOrder: ['asc', 'desc']
}
});

createGrid(document.body, {
columnDefs: [],
rowData: [],

defaultColDef: {
sortingOrder: ['asc', 'desc'],
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"scenario": {
"input": "input.js",
"output": "output.js"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ createGrid(document.body, {
createGrid(document.body, {
columnDefs: [],
rowData: [],
groupHideParentOfSingleChild: false,

});

const opt1 = true;
Expand All @@ -34,7 +34,7 @@ createGrid(document.body, {
createGrid(document.body, {
columnDefs: [],
rowData: [],
groupHideParentOfSingleChild: false,

});

const opt2 = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import { createGrid } from '@ag-grid-community/core';

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressRowGroupHidesColumns: true,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressRowGroupHidesColumns: false,
});

const opt1 = true;
createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressRowGroupHidesColumns: opt1,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressRowGroupHidesColumns: true ? false : false,
});


createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressMakeColumnVisibleAfterUnGroup: true,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressMakeColumnVisibleAfterUnGroup: false,
});

const opt2 = true;
createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressMakeColumnVisibleAfterUnGroup: opt2,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressMakeColumnVisibleAfterUnGroup: true ? false : false,
});


createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressRowGroupHidesColumns: true,
suppressMakeColumnVisibleAfterUnGroup: true,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressRowGroupHidesColumns: true,
suppressMakeColumnVisibleAfterUnGroup: false,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressRowGroupHidesColumns: false,
suppressMakeColumnVisibleAfterUnGroup: true,
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import { createGrid } from '@ag-grid-community/core';

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressGroupChangesColumnVisibility: 'suppressHideOnGroup',
});

createGrid(document.body, {
columnDefs: [],
rowData: [],

});

const opt1 = true;
createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressGroupChangesColumnVisibility: opt1 ? 'suppressHideOnGroup' : false,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressGroupChangesColumnVisibility: (true ? false : false) ? 'suppressHideOnGroup' : false,
});


createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressGroupChangesColumnVisibility: 'suppressShowOnUngroup',
});

createGrid(document.body, {
columnDefs: [],
rowData: [],

});

const opt2 = true;
createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressGroupChangesColumnVisibility: opt2 ? 'suppressShowOnUngroup' : false,
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressGroupChangesColumnVisibility: (true ? false : false) ? 'suppressShowOnUngroup' : false,
});


createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressGroupChangesColumnVisibility: true
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
suppressGroupChangesColumnVisibility: 'suppressHideOnGroup'
});

createGrid(document.body, {
columnDefs: [],
rowData: [],
,
suppressGroupChangesColumnVisibility: 'suppressShowOnUngroup'
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"scenario": {
"input": "input.js",
"output": "output.js"
}
}
Loading

0 comments on commit 5f425e1

Please sign in to comment.