Skip to content

Spec/row actions 20260623#15

Open
javier-godoy wants to merge 2 commits into
spec/row-actionsfrom
spec/row-actions-20260623
Open

Spec/row actions 20260623#15
javier-godoy wants to merge 2 commits into
spec/row-actionsfrom
spec/row-actions-20260623

Conversation

@javier-godoy

Copy link
Copy Markdown
Member

Replace the boolean setRowActionsAsMenu() method with a more flexible setRowActionsStyle(RowActionsStyle) API that supports three distinct presentation modes for row actions:

  • INLINE_BUTTONS (default): Each action is rendered as a separate inline button in the dedicated actions column
  • DROPDOWN: All actions are presented as items in an overflow menu, triggered by a single button per row in the actions column
  • CONTEXT_MENU: All actions are presented as items in the grid's right-click context menu; no actions column is created

Motivation

The boolean API was limited to two modes and didn't clearly express the intent. The enum-based approach is more explicit, easier to extend in the future, and clearly names each presentation style. It also opens up support for context menu rendering, which is a common use case.

Key Changes

  • Rename setRowActionsAsMenu(boolean)setRowActionsStyle(RowActionsStyle)
  • Update getActionsColumn() documentation to clarify it returns null for CONTEXT_MENU style
  • Update setRowActionsRenderer() reference to use the new method name
  • Clarify refresh behavior in refreshRowActions() and remove() documentation
  • Update usage examples to demonstrate all three styles
  • Shift terminology from "actions column" to "row actions" where applicable, since not all styles use a dedicated column.

@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 8e6d67a1-6770-45ca-af9a-4753f6df9e08

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch spec/row-actions-20260623

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@javier-godoy javier-godoy marked this pull request as ready for review June 23, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Do

Development

Successfully merging this pull request may close these issues.

1 participant