Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@disane/ngx-taskboard

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@disane/ngx-taskboard

Yet another angular taskboard

  • 1.0.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
56
increased by273.33%
Maintainers
1
Weekly downloads
 
Created
Source

badge codecov badge npm bundle size (scoped)

Description

ngx-taskboard is an implemention of my on taskboard, because all other taskboards are not that what I need. Feel free to contribute or leave some important feedback! Head over to the issues when you have questions or found a bug or leave a PR if you have som additions. Styling is made with Bootstrap, so it's 100% compatible.

Taskboard

Dependency

  • Angular 7
  • Bootstrap

Installation

npm install @disane/ngx-taskboard

Basic usage

app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { NgxTaskboardModule } from '@disane/ngx-taskboard';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule, NgxTaskboardModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

app.component.html

<ngx-taskboard class="w-100 h-100" [items]="items" [hGroupKeys]="hGroupKeys" [vGroupKeys]="vGroupKeys"
  [vGroupKey]="vGroupKey" [hGroupKey]="hGroupKey" [sortBy]="sortBy" [invertGroupDirection]="false">
</ngx-taskboard>

app.component.ts

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent {
  public items = [
    { id: 1, name: 'Evaluate', color: '#fb3064', status: 'open', user: 'Marco', priority: 1 },
    { id: 2, name: 'Call customer', color: '#71dd8f', status: 'working', user: 'Jamie', priority: 1 },
    { id: 3, name: 'Fix bugs', color: '#29aa82', status: 'open', user: 'Malian', priority: 1 },
    { id: 3, name: 'Create SCSS', color: '#e14a2f', status: 'open', user: 'Marco', priority: 1 },
    { id: 4, name: 'Boil water', color: '#209ab7', status: 'working', user: 'Marco', priority: 2 },
    { id: 4, name: 'Walking the doggo', color: '#b3f7dd', status: 'done', user: 'Thorsten', priority: 3 },
    { id: 4, name: 'Prepare for xmas', color: '#ea6562', status: '', user: '' },
    { id: 4, name: 'Birthday preps', color: '#b4ade5', status: 'test', user: '', priority: 5 }
  ];

  public vGroupKeys = ['open', 'working', 'test', 'done'];
  public hGroupKeys = ['Marco', 'Jamie', 'Malian', 'Natalie', 'Thorsten'];

  public vGroupKey = 'status';
  public hGroupKey = 'user';
  public sortBy = 'priority';

}

Configuration

Properties

PropertyDefaultDescription
showBacklogtrueShows the backlog
items[]Items from type CardItem[] or object[]
vGroupKey''Group vertical items by field ''
hGroupKey''Group horizontal items by field ''
vGroupKeys[]Group keys which are shown vertically '', without, the values of property vGroupKey in items is used
hGroupKeys[]Group keys which are shown vertically '', without, the values of property hGroupKey in items is used
invertGroupDirectionfalseInverts the horizontal and vertical axis
showUngroupedInBacklogtrueItems with no value in vGroupKey and hGroupKey are "ungrouped" and shown in backlog
smallTextfalseIncreased font size
itemTemplatenull <TemplateRef>Template for customizing the Items shown. See examples
noElementsTemplatenull <TemplateRef>Template for customizing for collapsed items. See examples
hHeaderTemplatenull <TemplateRef>Template for horizontal headers. See examples
vHeaderTemplatenull <TemplateRef>Template for vertical headers. See examples
actionsTemplatenull <TemplateRef>Template for actions. See examples
vCollapsabletrueGroups can be collapsed
hAddNewItemstrueNew item icon (horizontal)
vAddNewItemstrueNew item icon (vertical)
cellAddNewItemstrueNew item icon (cell)
vHeaderClass'card-header'CSS class for vertical header
hHeaderClass'card-header'CSS class for horizontal header
cellClass'card-header'CSS class for cells
boardName''Will be displayed between vertical and horizontal headers

Events

EventParamTypeDescription
dragStarted`CardItem[]object[]`
dropped`CardItem[]object[]`
elementCreateClickClickEventFired when an add action is click. Current ClickEvent is passed

Datatypes

CardItem
export interface CardItem {
    id: number;
    name: string;
    status?: string;
    color?: string;
    user?: string;
    priority?: number;
}
ClickEvent
export interface ClickEvent {
  hGroup: string; 
  vGroup: string;
}

Examples

Following soon

Limitations

  • Scrolling actually not possible

Keywords

FAQs

Package last updated on 14 Aug 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc