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

A handler required for caret icon expansion in tree view component #15760

Closed
1 task done
PriyaTawate opened this issue Feb 15, 2024 · 4 comments
Closed
1 task done

A handler required for caret icon expansion in tree view component #15760

PriyaTawate opened this issue Feb 15, 2024 · 4 comments
Labels
component: treeview proposal: open This request has gone through triaging. We're determining whether we take this on or not. status: waiting for maintainer response 💬 type: enhancement 💡

Comments

@PriyaTawate
Copy link

The problem

In tree view component, we want to load data dynamically on click of a particular node.

The solution

We want to load a list inside a particular folder when clicking on the caret icon. We need to get the name of the folder in that handler.

Examples

No response

Application/PAL

No response

Business priority

Medium Priority = upcoming release but is not pressing

Available extra resources

No response

Code of Conduct

Copy link
Contributor

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

@sstrubberg
Copy link
Member

@PriyaTawate can you share some in-context examples or screen grabs of what you're going for here?

@PriyaTawate
Copy link
Author

PriyaTawate commented Mar 12, 2024

@sstrubberg screenshot
What we are trying to achieve is load the list inside a particular folder dynamically so we need to call an api when a particular folder is expanded (caret icon before that folder name is clicked). And we need a handler for this purpose.

@sstrubberg sstrubberg added proposal: open This request has gone through triaging. We're determining whether we take this on or not. and removed status: needs triage 🕵️‍♀️ labels Mar 18, 2024
@tay1orjones
Copy link
Member

@PriyaTawate Recently an experimental controllable API for TreeView was implemented, #15397. It added an onActivate that I think you can use for the purpose you describe.

This feature flag is documented in storybook - check it out and let us know what you think. The goal with it being experimental is to get usage feedback to ensure it meets everyone's needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: treeview proposal: open This request has gone through triaging. We're determining whether we take this on or not. status: waiting for maintainer response 💬 type: enhancement 💡
Projects
Archived in project
Development

No branches or pull requests

4 participants