Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(editors): add target to onBeforeEditCell w/called by composite #301

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

ghiscoding
Copy link
Owner

  • we need a way to identify when the onBeforeEditCell is called by the Composite Editor modal or by the inline editors, we can simply add a target ("grid" or "composite") to identify where it was called. This will allow us to potentially disable some fields while doing inline editing but leave the same field enable when opening the Mass Update window from composite
  • might as well also add the compositeEditorOptions in case we need to know if the Composite Modal is of type Mass Update, Edit, ...

- we need a way to identify when the `onBeforeEditCell` is called by the Composite Editor modal or by the inline editors, we can simply add a `target` ("grid" or "composite") to identify where it was called. This will allow us to potentially disable some fields while doing inline editing but leave the same field enable when opening the Mass Update window from composite
- might as well also add the `compositeEditorOptions` in case we need to know if the Composite Modal is of type Mass Update, Edit, ...
@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #301 (729af65) into master (f1431f6) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #301   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          212       212           
  Lines        12716     12716           
  Branches      4169      4169           
=========================================
  Hits         12716     12716           
Impacted Files Coverage Δ
packages/common/src/editors/autoCompleteEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/checkboxEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/dateEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/dualInputEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/floatEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/integerEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/longTextEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/selectEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/sliderEditor.ts 100.00% <100.00%> (ø)
packages/common/src/editors/textEditor.ts 100.00% <100.00%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1431f6...729af65. Read the comment docs.

@ghiscoding ghiscoding merged commit 7440ff5 into master Mar 30, 2021
@ghiscoding ghiscoding deleted the feat/on-before-edit-target branch March 30, 2021 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant