-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
DataViews: Update actions API #56026
Conversation
- `icon`: icon to show for primary actions. It's required for a primary action, otherwise the action would be considered secondary. | ||
- `isEligible`: function, optional. Whether the action can be performed for a given record. If not present, the action is considered to be eligible for all items. It takes the given record as input. | ||
- `isDestructive`: boolean, optional. Whether the action can delete data, in which case the UI would communicate it via red color. | ||
- `callback`: function, required. Callback function that takes the record as input and performs the required action. |
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.
From this line and below are the actual changes here. The rest are whitespace changes.
Size Change: -1 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in 81dfd37. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6821856929
|
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.
I haven't tested but code changes look good.
Co-authored-by: André <[email protected]>
* [Data views]: Update actions API * Update packages/edit-site/src/components/dataviews/README.md Co-authored-by: André <[email protected]> --------- Co-authored-by: André <[email protected]>
What?
Follow up of: #55848 (comment)
Testing Instructions