-
Notifications
You must be signed in to change notification settings - Fork 143
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
Collapsible panel section component #260
Comments
Thanks for the request! To help a bit more with my understanding could you provide some examples or ideas of what you would use the accordion for? For example, is your hope that the accordion would contain a tree view (like in the photo above) or some other content? If you have an extension idea or extension that you actively work on where would the accordion fit into that extension? |
@hawkticehurst I use the accordion to mimic the same behavior in my Front Matter panel (https://frontmatter.codes/) as all other panels from VS Code. I just want to be able to render any kind of HTML elements in it, not only a tree view. |
Thanks! That's helpful. |
I had a similar question re: rendering HTML in a panel. @estruyf are you currently using this Webview View API?
Based on the screenshots, I assume you already are. If that's the case, is it simply a matter of wanting that same component in an editor panel instead of the sidebar? |
Correct @daviddossett, I'm using it in a webview. Having the web component available would allow us to reuse it in custom sidebars and align the style. |
Thanks for the clarification @estruyf! The last question I have is if you could give a bit more information/screenshots about the It seems pretty straightforward and makes me wonder if it would be possible to implement a sort of hybrid extension that uses both the TreeView API and Webview API in a similar fashion to the notepad sample extension? That way you get the built-in styling of a collapsible UI element (not to mention the speed of a native API), along with the flexibility of rendering whatever content you need inside a webview. But again I could certainly be misinterpreting the screenshot you sent so any further info would be appreciated! |
The tasks.json was actually my example. 🙄 |
Ahh shoot my apologies! Totally skimmed over the username without looking closely 🤦🏻♂️. But also got it, thanks for clarifying! |
Hi all, Back with a final update: I'm very sorry to say that the toolkit is being deprecated and all active development will be coming to a close. There was an announcement last week where you can learn more details and leave any questions or comments you may have. Beyond that, thank you so much filing this issue and apologies for never getting around to addressing it. It means a lot that you contributed to the improvement of this project. I wish you all the best in your future VS Code extension endeavors! |
Feature/component description
Creation of an accordion / collapsible section component. Similar to the panel sections which you have on the explorer panel.
Use case
To create an experience that comes close to the OOTB VS Code experience in your webviews, it would be great to have a collapsible section component.
Screenshots/references
The text was updated successfully, but these errors were encountered: