Skip to content

Commit

Permalink
fix(grid): Support Row Selection & Inline Editors in 1 view
Browse files Browse the repository at this point in the history
- SlickGrid reference 6pac/SlickGrid#243
  • Loading branch information
ghiscoding committed May 19, 2018
1 parent b722f6d commit 1da7b7a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aurelia-slickgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"moment": "^2.19.1",
"moment-mini": "^2.18.1",
"nps": "^5.7.1",
"slickgrid": "^2.3.18",
"slickgrid": "~2.3.19",
"text-encoding-utf-8": "^1.0.2"
},
"peerDependencies": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,17 @@ export const GlobalGridOptions: GridOption = {
showSortCommands: true
},
headerRowHeight: 35,
showHeaderRow: false,
multiColumnSort: true,
numberedMultiColumnSort: true,
tristateMultiColumnSort: false,
sortColNumberInSeparateSpan: true,
pagination: {
pageSizes: [10, 15, 20, 25, 30, 40, 50, 75, 100],
pageSize: 25,
totalItems: 0
},
rowHeight: 35,
showHeaderRow: false,
sortColNumberInSeparateSpan: true,
suppressActiveCellChangeOnEdit: true,
topPanelHeight: 35
};
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,12 @@ export interface GridOption {
/** Defaults to true, which leads to render a separate span for the number and styles it with css class <i>slick-sort-indicator-numbered</i> */
sortColNumberInSeparateSpan?: boolean;

/**
* Defaults to true, which leads to suppress the cell from becoming active when cell as an editor and is clicked.
* This flag should be enabled especially when mixing these 2 features (Row Selections & Inline Editors)
*/
suppressActiveCellChangeOnEdit?: boolean;

/** What is the top panel height in pixels (only type the number) */
topPanelHeight?: number;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"jquery-ui-dist": "^1.12.1",
"moment": ">=2.18.1",
"moment-mini": ">=2.18.1",
"slickgrid": "^2.3.18",
"slickgrid": "~2.3.18",
"text-encoding-utf-8": "^1.0.2"
},
"devDependencies": {
Expand Down

0 comments on commit 1da7b7a

Please sign in to comment.