-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
suppressGroupChangesColumnVisibility & colDef props
- Loading branch information
1 parent
70cac2c
commit 5f425e1
Showing
24 changed files
with
1,256 additions
and
133 deletions.
There are no files selected for viewing
101 changes: 101 additions & 0 deletions
101
...form-grid-options-v33-0/__fixtures__/scenarios/js/transformGridOptionToColDef.ts/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'], | ||
}); |
114 changes: 114 additions & 0 deletions
114
...orm-grid-options-v33-0/__fixtures__/scenarios/js/transformGridOptionToColDef.ts/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'], | ||
} | ||
}); |
6 changes: 6 additions & 0 deletions
6
...grid-options-v33-0/__fixtures__/scenarios/js/transformGridOptionToColDef.ts/scenario.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"scenario": { | ||
"input": "input.js", | ||
"output": "output.js" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
...v33-0/__fixtures__/scenarios/js/transformSuppressGroupChangesColumnVisibility.ts/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}); |
72 changes: 72 additions & 0 deletions
72
...33-0/__fixtures__/scenarios/js/transformSuppressGroupChangesColumnVisibility.ts/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
}); |
6 changes: 6 additions & 0 deletions
6
.../__fixtures__/scenarios/js/transformSuppressGroupChangesColumnVisibility.ts/scenario.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"scenario": { | ||
"input": "input.js", | ||
"output": "output.js" | ||
} | ||
} |
Oops, something went wrong.