-
Notifications
You must be signed in to change notification settings - Fork 79
feat: pass clicked column to grid context menu dynamic content provider #10331
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
base: main
Are you sure you want to change the base?
Changes from all commits
f387219
25ffef6
9bc39db
bc4a544
8552026
2e58f26
72db0d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -512,7 +512,8 @@ export class GridConnector { | |
| const eventContext = grid.getEventContext(sourceEvent); | ||
| const key = eventContext.item?.key || ''; | ||
| const columnId = eventContext.column?.id || ''; | ||
| return { key, columnId }; | ||
| const internalColumnId = eventContext.column?._flowId ?? ''; | ||
| return { key, columnId, internalColumnId }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why isn't columnId enough?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Artur- |
||
| }; | ||
|
|
||
| grid.preventContextMenu = (event) => { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be deprecated for removal then, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Artur- Yes, I've deprecated it for removal now. Both
setDynamicContentHandler(SerializablePredicate)andgetDynamicContentHandler()have@Deprecated(since = "25.4", forRemoval = true), and the@deprecatedtag points to the(item, column)overload. The getter has no replacement, because the two overloads can't share a getter name. Behavior is unchanged and the existing tests still cover the old setter.