🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@worktile/gantt

Package Overview
Dependencies
Maintainers
9
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@worktile/gantt

A modern and powerful gantt chart component for Angular

npmnpm
Version
12.0.1
Version published
Weekly downloads
1.5K
-5.72%
Maintainers
9
Weekly downloads
 
Created
Source

ngx-gantt

CircleCI Coverage Status npm (scoped) npm npm bundle size (scoped) All Contributors

A modern and powerful gantt component for Angular

Installation

$ npm i @worktile/gantt --save
# or
$ yarn add @worktile/gantt

Demo

Try out our live demo

Usage

1. Import the NgxGanttModule to use into your app.module.ts

import { NgModule } from '@angular/core';
import { NgxGanttModule } from '@worktile/gantt';

@NgModule({
  ...
  imports: [ NgxGanttModule, ... ]
  ...
})
export class AppModule {

}

2. Import style file in angular.json or import style in your style.scss

{
  "styles": ["node_modules/@worktile/gantt/main.bundle.scss"]
}
@import '~@worktile/gantt/main.bundle.scss';

3. Using component

component.html

<ngx-gantt #gantt [items]="items">
  <ngx-gantt-table>
    <ngx-gantt-column name="Title" width="300px">
      <ng-template #cell let-item="item"> {{ item.title }} </ng-template>
    </ngx-gantt-column>
  </ngx-gantt-table>
</ngx-gantt>

component.ts

@Component({
  selector: 'app-gantt-example',
  templateUrl: './gantt.component.html'
})
export class AppGanttExampleComponent {
  items: GanttItem[] = [
    { id: '000000', title: 'Task 0', start: 1627729997, end: 1628421197 },
    { id: '000001', title: 'Task 1', start: 1617361997, end: 1625483597 }
  ];

  constructor() {}
}

See Getting Started for more details.

Development

$ git clone git@github.com:worktile/ngx-gantt.git
$ cd ngx-gantt
$ npm install
$ npm run start

Roadmap

  • virtual scrolling

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Walker

💬 💻 🎨 📖 🚇 🚧 📆 👀

zhangwen

đź’»

cmq

đź’»

This project follows the all-contributors specification. Contributions of any kind welcome!

LICENSE

MIT License

Keywords

gantt

FAQs

Package last updated on 18 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts