hawtio / hawtio-ui

Hawtio UI widgets for hawtio 2.x see http://ui.hawt.io/
Apache License 2.0
7 stars 6 forks source link

ui.hawt.io - Need documentation/page for the tree plugin #31

Closed gashcrumb closed 6 years ago

gashcrumb commented 8 years ago

Would be good to have some documentation and an example for the tree plugin.

abkieling commented 8 years ago

I'm working on this one.

abkieling commented 8 years ago

I'm getting the following error: Error: [$injector:unpr] Unknown provider: workspaceProvider <- workspace <- hawtioTreeDirective What is this workspace dependency that gets injected into the directive?

One more thing, I couldn't find any example of building a tree using the Folder class. Where can I find one?

gashcrumb commented 8 years ago

Ah, 'workspace' is from hawtio-jmx we'll need to figure out how to get rid of that service dependency. Also, I think Folder is an interface we decided that matches the object you get back from dynatree.

Bear with me a bit, am on vacation until next week...

On Aug 21, 2016 11:15 AM, "Alexandre Kieling" notifications@github.com wrote:

I'm getting the following error: Error: [$injector:unpr] Unknown provider: workspaceProvider <- workspace <- hawtioTreeDirective What is this 'workspace' dependency that gets injected into the directive?

One more thing, I couldn't find any example of building a tree using the Folder class. Where can I find one?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hawtio/hawtio-ui/issues/31#issuecomment-241263305, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVdrIOYF2t1o2eZ1P9Os9J8iroeM2Shks5qiGt1gaJpZM4JJfIT .

abkieling commented 8 years ago

workspace is only referenced on line 136 and only gets executed when the onSelect attribute isn't specified. hawtio-jmx could pass a callback via that attribute instead of injecting workspace.

gashcrumb commented 8 years ago

Yeah, that's totally worth fixing in hawtio-jmx so we can get rid of that reference.

On Aug 31, 2016 8:28 PM, "Alexandre Kieling" notifications@github.com wrote:

workspace is only referenced on line 136 and only gets executed when the onSelect attribute isn't specified. hawtio-jmx could pass a callback via that attribute instead of injecting workspace.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hawtio/hawtio-ui/issues/31#issuecomment-243942130, or mute the thread https://github.com/notifications/unsubscribe-auth/AAVdrL6XS-fk23PA5A_d7f_NcGRUKY5Gks5qlhwrgaJpZM4JJfIT .

abkieling commented 8 years ago

I suggest fixing #21 and #48 before doing this one.

abkieling commented 6 years ago

The tree plugin has been replaced with patternfly-bootstrap-treeview.