Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Docs and demo mprovement #825

Open
ansem78 opened this issue Jun 13, 2018 · 3 comments
Open

Docs and demo mprovement #825

ansem78 opened this issue Jun 13, 2018 · 3 comments

Comments

@ansem78
Copy link

ansem78 commented Jun 13, 2018

I suggest to seriously improve the demo and the docs. The demo should use a JS file with an Angular app code unminified and well commented. The docs lack lot of things. For example, where can I find the dependencies or the corner plugin? It says to add 'gantt.dependencies' or 'gantt.corner' as app module dependencies, but does not say where these module files are located. Gantt is very difficult to understand and the docs and the demo do not help very much.

@ansem78 ansem78 changed the title tree plugin templates does not work Docs and demo mprovement Jun 13, 2018
@ldmarz
Copy link

ldmarz commented Jun 13, 2018

The tree plugin use this library backwards, in the README.md from that library you can see the template of that plugin... Take care about this plugin because with heavy amount of data you can have a high cost of performance. Because of that i forked this plugin and implement a recycler-view

@codingedgar
Copy link

ok, so this guy @ldmarz that's from our team, forked the gantt in https://github.com/ldmarz/le-angular-gantt, and we're using that for our own project, we made some performance changes and stuff, and are more open to accept PRs.

@ansem78
Copy link
Author

ansem78 commented Jun 26, 2018

@edgarjrg @ldmarz Thanks. I'm implementing the fork and it's better than the original gantt. But I'm still having trouble with some feature/plugin.

The tooltips plugin does not work as expected. I enabled the tooltips plugin and it does not show anything but empty tooltips. I tried to manually set the content attribute and the templateUrl attribute (with simple text or HTML) but it always shows empty tooltips.

I'd also like to know how to use the API. I have to execute a function when I move a task. So, I registered the API following the docs. I added api="registerApi" to the gantt directive in HTML, and in my controller:

$scope.registerApi = function(api) {
api.core.on.ready($scope,function() {
api.tasks.on.moveEnd($scope,function(task) {
console.log(task);
});
});
};

But this doesn't throw any error and doesn't log the task to the console.

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

No branches or pull requests

3 participants