Skip to content

Commit

Permalink
features updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sa-si-dev committed May 29, 2021
1 parent b8d7ac1 commit 4cb8dbb
Show file tree
Hide file tree
Showing 18 changed files with 945 additions and 211 deletions.
40 changes: 39 additions & 1 deletion src/config/config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
export const config = {
GridCoreVersion: 'v1.0.1',
GridCoreVersion: 'v1.0.2',

headerHeight: '60px',
filtersTagsHeight: '50px',
footerHeight: '36px',
minZIndex: 1,

iconSize: '16px',
iconSizeSmall: '14px',
iconSizeMedium: '18px',

colAlignMapping: {
left: 'flex-start',
right: 'flex-end',
Expand All @@ -22,6 +26,30 @@ export const config = {
select: 'renderFilterFieldForSelect',
},

wrapperClickMethodsMapping: {
'grid-comp-col-sort-button': 'onColSortClick',
'grid-comp-selected-rows-clear-button': 'onSelectedRowsClearClick',
'grid-comp-grand-total-button': 'onGrandTotalButtonClick',
'grid-comp-settings-save-button': 'onSettingsPopoverSaveClick',
'grid-comp-settings-cancel-button': 'onSettingsPopoverCancelClick',
'grid-comp-filters-tags-more-button': 'onFiltersTagsMoreButtonClick',
'grid-comp-export-button': 'onExportButtonClick',
'grid-comp-filters-button': 'onFiltersButtonClick',
'grid-comp-filters-box-cancel-button': 'onFiltersBoxCancelButtonClick',
'grid-comp-page-nav-button-first': 'onPageNavFirstClick',
'grid-comp-page-nav-button-last': 'onPageNavLastClick',
'grid-comp-page-nav-button-prev': 'onPageNavPrevClick',
'grid-comp-page-nav-button-next': 'onPageNavNextClick',
'grid-comp-selected-rows-action-button': 'onSelectedRowsActionClick',
},

wrapperChangeMethodsMapping: {
'grid-comp-selectable-col-checkbox': 'onSelectableColCheckboxChange',
'grid-comp-selectable-col-head-checkbox': 'onSelectableColHeadCheckboxChange',
'grid-comp-per-page-dropdown': 'onPerPageDropdownChange',
'grid-comp-settings-column-item-switch': 'onSettingsPopoverSwitchChange',
},

specialColumns: {
sNo: {
id: 'sNo',
Expand All @@ -34,6 +62,16 @@ export const config = {
resizable: false,
alwaysShow: true,
},
selectable: {
id: 'selectableCheckbox',
key: 'sNo',
width: '20px',
renderer: 'renderSelectableCol',
sticky: true,
sortable: false,
resizable: false,
alwaysShow: true,
},
},
};

Expand Down
Loading

0 comments on commit 4cb8dbb

Please sign in to comment.