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

Allow to render node names with templates #81

Open
dgolovin opened this issue Nov 7, 2019 · 2 comments
Open

Allow to render node names with templates #81

dgolovin opened this issue Nov 7, 2019 · 2 comments

Comments

@dgolovin
Copy link
Contributor

dgolovin commented Nov 7, 2019

Every kind of node should have default template. There should be preference that allows to modify default template per node kind.

@dgolovin dgolovin self-assigned this Nov 7, 2019
@dgolovin dgolovin added the enhancement New feature or request label Nov 7, 2019
@dgolovin dgolovin added this to the devex #175 milestone Nov 7, 2019
@dgolovin dgolovin modified the milestones: devex #175, devex #176 Nov 27, 2019
@dgolovin dgolovin modified the milestones: devex #176, devex #177 Dec 19, 2019
@siamaksade
Copy link

@dgolovin could you provide more detail on this?

@gorkem gorkem removed this from the devex #177 milestone Dec 20, 2019
@dgolovin
Copy link
Contributor Author

It is just an idea to allow users to define rendering for TreeItem labels. Every TreeItem is based on json data. Currently we just hardcode labels in tree for different node kinds. I was thinking to have preference where you can define template for any node kind using strings like "#{refrernce.to.json.attriburte} static text". Then tree data provider would use that string to generate label for specific node and replace #{} to real value from json data.

It is totally optional feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants