Skip to content

[ObjectPage] Provide a way to detect clicking on a tab header #7276

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

Open
1 task done
ThiagoSzz opened this issue Apr 28, 2025 · 0 comments
Open
1 task done

[ObjectPage] Provide a way to detect clicking on a tab header #7276

ThiagoSzz opened this issue Apr 28, 2025 · 0 comments

Comments

@ThiagoSzz
Copy link

ThiagoSzz commented Apr 28, 2025

Is your feature request related to a problem?

Currently (afaik) it's not possible to detect when clicking on a tab header (title of a page section).
The onSelectedSectionChange event of the ObjectPage component is only triggered when the selected section is changed (switching tabs).
The onClick event of the ObjectPage component does not work when clicking on a tab.
The onClick event of the ObjectPageSection subcomponent is only triggered when clicking on the content of the page section.

Image

Describe the solution you'd like

My suggestion is that an onSectionHeaderClick event is exposed through a property of the ObjectPageSection subcomponent. This event would be triggered everytime when clicking on the tab of the section.

Describe alternatives you've considered

Another way is to make the onClick event of the ObjectPage component be triggered when clicking on a tab, so that we could access the clicked tab by the event.target field.

Additional Context

Would be great if this is available on v1.28+.

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant