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

[FEATURE SUGGESTION] Custom TreeViewNodes #1303

Open
SoftwareMechanic opened this issue Dec 14, 2023 · 4 comments
Open

[FEATURE SUGGESTION] Custom TreeViewNodes #1303

SoftwareMechanic opened this issue Dec 14, 2023 · 4 comments
Assignees

Comments

@SoftwareMechanic
Copy link

SoftwareMechanic commented Dec 14, 2023

Hello!
I think wuld be nice to be able to add manually nodes to the treeview, and eventually link these nodes to objects through IDs.

The reason why I suggest this implementation is because I would like to manage the model also by a custom defined WBS.

I think would be nice to add a method to the TreeViewPlugin treeview.addNode(nodeName, objectId, parent).
where a null parent meanse it is a rootNode.

what do you think about this?

@xeolabs
Copy link
Member

xeolabs commented Dec 14, 2023

Hi, yes I think this would be a good idea. I don't have the time to work on this myself at the moment, but we would welcome this feature if you're able to to contribute it. If so, we would also need an example page that tests and demonstrates it.
Cheers

@SoftwareMechanic
Copy link
Author

yes, I would be happy to contribute! 😃
I just forked the repository and giving it a look, just a question before I start with this contribution, how can I test in local the examples?
they works for the BIM-viewer, but single examples of the SDK are not.
if I try to run a local server on examples I get mimetypes error, do you have a .types file, or do you know an alternative way to run examples in local?
so I can test my own modifications.
sorry but this would be my first contirbution to a js project, bear with me.

@xeolabs
Copy link
Member

xeolabs commented Dec 15, 2023

Great! Hmm I just run http-server from the root directory on Ubunutu and then I can load ./examples/ in Chrome. There are some warnings, but nothing critical, and examples run OK.

@SoftwareMechanic
Copy link
Author

oh!
I was trying run that command from a non-root folder, it works also on windows by doing as you said!
Thank you!

@xeolabs xeolabs assigned xeolabs and SoftwareMechanic and unassigned xeolabs Dec 15, 2023
@xeolabs xeolabs changed the title Custom TreeViewNodes [FEATURE SUGGESTION] Custom TreeViewNodes Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants