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: add additional action button and menu slot to table #2334

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

jordankoschei-okta
Copy link
Contributor

By popular request (and to achieve parity with that first version of DataTable), this resurrects a feature that was lost as a regression.

Both DataView and DataTable now offer props for additionalActionButton and additionalActionMenuItems, which render arbitrary action button or menu items into the top of the component. This is intended for functionality like an "Add row" action or similar that should live on the table itself, not at the page-level.

image

@@ -200,6 +202,14 @@ const storybookMeta: Meta<DataTableMetaProps> = {
control: "boolean",
name: "[STORY ONLY] Has action buttons in table view?",
},
hasAdditionalActionButton: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the API for this component is already pretty complex. Adding Story only props to the documentation feels like it could cause confusion maybe.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that we've already done this but, feels like we should make an effort to remove them IMHO

Copy link
Contributor

@bryancunningham-okta bryancunningham-okta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One comment about the story docs but not a blocker

@oktapp-aperture-okta oktapp-aperture-okta bot merged commit 52b3f38 into main Sep 4, 2024
3 checks passed
@oktapp-aperture-okta oktapp-aperture-okta bot deleted the jk-additional-data-table-actions-v2 branch September 4, 2024 15:44
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