When a scroll is performed over any "scroll duplex" element becomes master and all other duplex receivers
sroll to a specific date position in the gantt
@param {moment} date moment to scroll to.
@param {integer} milliseconds of duration rate of time of the animation (default 200).
const date = moment()
$scope.api.scroll.toDateSoftly(date)
// or
$scope.api.scroll.toDateSoftly(date, 300)
Go to a specific row of the recycler plugin
const predicate = (row) => row.model.id === id)
$scope.api.recycler.goToRow(predicate)
Display a tree hierarchy with multiple columns support... This plugins support high ammount of data because is using md-virtual-repeat from angular-material
angular-material: 1.1.5
angular.module('myApp', ['gantt', 'gantt.recycler']);
Rows can specify a list of children using children
property and/or a parent using parent
property. Name and id
can be used to define the hierarchy. Just like Tree plugin
var data = [
{name: 'Parent', children: ['One', 'Two', 'Three']},
{name: 'One', tasks: [...]},
{name: 'Two', tasks: [...]},
{name: 'Three', tasks: [...]},
]
Here you can define the structure of your grid-side using this structure
$scope.templateRows = [{ type: 'tree', // To make this column a tree headerContent: '
Use extraScaleTime to scale symmetricaly the headerScale
// SomeComponent.js
extraScaleTime: {
time: 3 // In Hours
}
// SomeTemplate.js
<div
gantt
extra-scale-time="$scope.extraScaleTime"
>
</div>
In order to avoid a task trigger the movable directive, you can use no-draggable
attribute
tasks: [
{ content: '<span id="span"> task1 <button id="hola" no-draggable>hola</button> </span>'
}
]
angular-gantt provides a gantt chart component to your AngularJS application.
Try angular-gantt now using the Demo Application.
Unstable Demo Application is also available. It is build against github develop branch, and allows to preview bleeding edge features, but may be very unstable.
You can even try the API using Plunker sandbox, with XYYkD8tf5b2LQs5kL5nx (latest release) and cNqoyX (develop branch).
Docs are built using MkDocs and available at angular-gantt website (stable) and ReadTheDocs (develop).
angular-gantt is available through bower and npm.
npm install angular-gantt
bower install angular-gantt
or
npm install https://github.com/angular-gantt/angular-gantt/tarball/develop
bower install angular-gantt#develop
You can find released version on CDNs.
//cdn.jsdelivr.net/npm/angular-gantt@latest/dist/angular-gantt.min.js
//cdn.jsdelivr.net/npm/angular-gantt@latest/dist/angular-gantt.min.css
CDNjs (Replace <version>
with latest github tag)
//cdnjs.cloudflare.com/ajax/libs/angular-gantt/<version>/angular-gantt.min.js
//cdnjs.cloudflare.com/ajax/libs/angular-gantt/<version>/angular-gantt.min.css
Latest released version is available to download on Github and is the recommended and stable version.
Develop branch version contains bleeding edge features, but may be very unstable.
Note: Some plugins require additional dependencies.
Copyright (c) 2017 Marco Schweighauser, Rémi Alvergnat
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.