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(composite): add new validateMassUpdateChange callback & bug fixes #603

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

ghiscoding
Copy link
Owner

  • add a new method validateMassUpdateChange that user can provide which when returning false will skip changes on that item data context, it will be analyzed for each row
  • add shouldPreviewMassChangeDataset flag that when enabled will provide a preview of the dataset changes (mass update/selection) when calling the onSave function
  • fix column name showing plain html when name is provided as html instead of simple text. Basically name can accept html that will be rendered and we should do the same in the Composite modal window
  • also remove fixed button text, we will keep using translation keys instead

- add a new method `validateMassUpdateChange` that user can provide which when returning false will skip changes on that item data context, it will be analyzed for each row
- add `shouldPreviewMassChangeDataset` flag that when enabled will provide a preview of the dataset changes (mass update/selection) when calling the `onSave` function
- fix column name showing plain html when `name` is provided as html instead of simple text. Basically `name` can accept html that will be rendered and we should do the same in the Composite modal window
- also remove fixed button text, we will keep using translation keys instead
@codecov
Copy link

codecov bot commented Jan 5, 2022

Codecov Report

Merging #603 (5dc203c) into master (9c31f0f) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #603   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          230       230           
  Lines        16059     16068    +9     
  Branches      5172      5179    +7     
=========================================
+ Hits         16059     16068    +9     
Impacted Files Coverage Δ
...-component/src/slick-composite-editor.component.ts 100.00% <100.00%> (ø)

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 9c31f0f...5dc203c. Read the comment docs.

@AnnetteZhang AnnetteZhang merged commit 2c1559b into master Jan 5, 2022
@AnnetteZhang AnnetteZhang deleted the feat/composite-editor-validate-mass-update branch January 5, 2022 20:46
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.

2 participants