-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix(ktableview): row-expanded prop and event [KHCP-14243] #2527
fix(ktableview): row-expanded prop and event [KHCP-14243] #2527
Conversation
✅ Deploy Preview for kongponents-sandbox ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kongponents ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -754,6 +754,42 @@ Function for making a row expandable. The function receives row value object as | |||
</KTableView> | |||
``` | |||
|
|||
### rowExpanded | |||
|
|||
Use this prop to specify initial expanded / collapsed state for each data row. The function receives row value object as an argument and should return a boolean value. Default value is `() => false`. When returned value is `true`, a row is rendered expanded. |
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.
Use this prop to specify initial expanded / collapsed state for each data row. The function receives row value object as an argument and should return a boolean value. Default value is `() => false`. When returned value is `true`, a row is rendered expanded. | |
Use this prop to specifythe initial expanded / collapsed state for each data row. The function receives the row value object as an argument and should return a boolean value. Default value is `() => false`. When returned value is `true`, a row is rendered expanded. |
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.
One nit, but otherwise functional and code looks great 🚀
🎉 This PR is included in version 9.14.17 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
Addresses: https://konghq.atlassian.net/browse/KHCP-14234
Changes:
row-expanded
prop to provide an ability to render some rows expanded by default initiallyrow-expand
event toupdate:row-expanded
and change event payloadrow: Record<string, any>
object to{ row: Record<string, any>, expanded: boolean }