feat: onBeforeCellEdit hook for RowBasedEditing plugin#2646
Conversation
provides the opportunity to define a callable hook to decide editor read/write on a per cell basis
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2646 +/- ##
=======================================
Coverage 100.0% 100.0%
=======================================
Files 200 200
Lines 25317 25325 +8
Branches 8951 8954 +3
=======================================
+ Hits 25317 25325 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
the reason for this one is that the user might be using his own onBeforeEditCell event, which the plugin also defines. So since the broadcast isnt defining how the order of multiple modal results are handled, this way the user can define the event as a hook, being called by the plugin itself. the use case is to allow individual users only edit specific cells, based on whatever criteria. |
angular-slickgrid
aurelia-slickgrid
slickgrid-react
slickgrid-vue
@slickgrid-universal/angular-row-detail-plugin
@slickgrid-universal/aurelia-row-detail-plugin
@slickgrid-universal/react-row-detail-plugin
@slickgrid-universal/vue-row-detail-plugin
@slickgrid-universal/binding
@slickgrid-universal/common
@slickgrid-universal/composite-editor-component
@slickgrid-universal/custom-footer-component
@slickgrid-universal/custom-tooltip-plugin
@slickgrid-universal/empty-warning-component
@slickgrid-universal/event-pub-sub
@slickgrid-universal/excel-export
@slickgrid-universal/graphql
@slickgrid-universal/odata
@slickgrid-universal/pagination-component
@slickgrid-universal/pdf-export
@slickgrid-universal/row-detail-view-plugin
@slickgrid-universal/rxjs-observable
@slickgrid-universal/sql
@slickgrid-universal/text-export
@slickgrid-universal/utils
@slickgrid-universal/vanilla-bundle
@slickgrid-universal/vanilla-force-bundle
@slickgrid-universal/web-mcp
commit: |
|
fine by me, can you run Prettier write to fix the formatting issue though... nevermind, it looks like it's fixed now. Thanks |
|
hey since you're online but on a completely different topic... 6pac just got introduced to AI and he's going wild with his new Claude Pro or Premium plan (170$/month), he's running Claude Fable to rewrite Freezing/Pinning with a different approach not using div I think (I'm not sure if it's worth it yet, but it would also add right pinning which we don't currently have and it wouldn't create all these viewports when not using freezing (which it currently does)). He also has another PR to add variable row height, but I told him to rethink this one since we can do better.... anyway, if you have some time and to review/comment on them, feel free to join the party. I told him that especially his freezing rewrite should be a major version on his repo and if I decide to go ahead with that too in here, that wouldn't be until my next major around January check the last currently open PRs he created |
|
oha, new-found power with more Tokens ... 🤣 thanks for letting me know. Variable row height would actually be one of the last limitations I know of and cant nicely work around. I'll check them out and add my comments if helpful |
|
great thanks, let's merge your PR and release around the end of this week. |
provides the opportunity to define a callable hook to decide editor read/write on a per cell basis