Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
xPAGCOE authored Jan 29, 2024
1 parent 240ff52 commit 0d9bd03
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions SAC AG-Grid/sacaggrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ var getScriptPromisify = (src) => {
overflow: overlay;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/ag-grid-community/dist/ag-grid-community.min.js"></script>
<div id="main_grid" width="100%">
</div>
`;
Expand Down Expand Up @@ -52,6 +51,15 @@ var getScriptPromisify = (src) => {
var grid_elt = this.shadowRoot.getElementById('main_grid');

const grid_options = {
columnDefs: [
// using default ColDef
{ field: 'A' },
{ field: 'B' },
{ field: 'C' },
{ field: 'D' },
{ field: 'E' }
],

// default ColDef, gets applied to every column
defaultColDef: {
// set the default column width
Expand All @@ -65,7 +73,19 @@ var getScriptPromisify = (src) => {
// disable cell data types
cellDataType: false,
},
rowData: null

rowData: [
{Id:1, A:'', B:'', C:'', D:'', E:''},
{Id:2, A:'', B:'', C:'', D:'', E:''},
{Id:3, A:'', B:'', C:'', D:'', E:''},
{Id:4, A:'', B:'', C:'', D:'', E:''},
{Id:5, A:'', B:'', C:'', D:'', E:''},
{Id:6, A:'', B:'', C:'', D:'', E:''},
{Id:7, A:'', B:'', C:'', D:'', E:''},
{Id:8, A:'', B:'', C:'', D:'', E:''},
{Id:9, A:'', B:'', C:'', D:'', E:''},
{Id:10, A:'', B:'', C:'', D:'', E:''}
]
};

// Destroy any existing grid instance
Expand Down

0 comments on commit 0d9bd03

Please sign in to comment.