sameeraroshan / visjs

visjs vaadin addon
Apache License 2.0
10 stars 13 forks source link

Cant find the xxxx.gwt.xml #1

Open whiteancient opened 9 years ago

whiteancient commented 9 years ago

Hello!

Usually when I incorporate addons to my app there is a ___.gwt.xml file to include into my own. But your addon doesnt have one. I have looked through the demo-code to find out how to use it, but cant find any clues. Is there a tutorial somewhere of how to incorporate your addon to a project? I suppose I miss something obvious here :/

Best Regards

Jonas

sameeraroshan commented 9 years ago

hi Jonas,

this addon does not have any ui elements. therefore no need to compile as a widget.so there is no gwt.xml.

if you go to the visjs-connector.js you can see how the network is generated.

container = this.getElement(); graph = new vis.Network(container,{ nodes: nodes, edges: edges } , options);

network is generated by using the layout you put the diagram.rest of the drawing is done in tha html canvas element.so there are no ui components in this library.

to use the library you just have to include it in the path.if you are using maven you just have to use

org.vaadin.addon visjs-addon 1.0.0.4 vaadin-addons http://maven.vaadin.com/vaadin-addons

in your pom file.

then you can create new diagram and add it to the layout you choose.

Options options = new Options(); NetworkDiagram networkDiagram = new NetworkDiagram(options); networkDiagram.setSizeFull(); addComponent(networkDiagram);

Best Regards Roshan

On Sat, Feb 7, 2015 at 3:09 AM, whiteancient notifications@github.com wrote:

Hello!

Usually when I incorporate addons to my app there is a ___.gwt.xml file to include into my own. But your addon doesnt have one. I have looked through the demo-code to find out how to use it, but cant find any clues. Is there a tutorial somewhere of how to incorporate your addon to a project? I suppose I miss something obvious here :/

Best Regards

Jonas

— Reply to this email directly or view it on GitHub https://github.com/sameeraroshan/visjs/issues/1.