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

@zeedhi/zd-kanban-common

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zeedhi/zd-kanban-common

Powered by Zeedhi

  • 1.7.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

ZdKanban

O componente ZdKanban é usado para quadros de tarefas.

Instalação

O ZdKanban é composto pelos pacotes @zeedhi/zd-kanban-common e @zeedhi/zd-kanban-vue. Utilize o comando abaixo para instalar ambos automaticamente:

npm install @zeedhi/zd-kanban

Ou instale os pacotes separadamente:

npm install @zeedhi/zd-kanban-vue @zeedhi/zd-kanban-common

Registro do Componente

Para registrá-lo, adicione o seguinte código ao inicializar a aplicação (por exemplo no arquivo zeedhi.ts)

import Vue from 'vue';
import { ZdKanban, ZdKanbanColumn, ZdKanbanTask  } from '@zeedhi/zd-kanban'; 
// import { ZdKanban, ZdKanbanColumn, ZdKanbanTask } from '@zeedhi/zd-kanban-vue'; caso tenha instalado os pacotes separadamente

Vue.component('ZdKanban', ZdKanban);
Vue.component('ZdKanbanColumn', ZdKanbanColumn);
Vue.component('ZdKanbanTask', ZdKanbanTask);

Uso Básico

Para utilizá-lo em um Metadata, basta definir a propriedade component como "ZdKanban".

{
  "name": "kanban-basic-usage",
  "component": "ZdKanban",
  "columns": [
    {
      "id": "1",
      "name": "backlog",
      "title": "Backlog"
    },
    {
      "id": "2",
      "name": "in-progress",
      "title": "In Progress",
      "tasks": []
    },
    {
      "id": "3",
      "name": "in-review",
      "title": "In Review",
      "tasks": []
    },
    {
      "id": "4",
      "name": "done",
      "title": "Done",
      "tasks": []
    }
  ],
  "taskMetadata": {
    "name": "<<row.name>>_task",
    "component": "ZdKanbanTask",
    "children": [
      {
        "name": "<<row.name>>_text",
        "component": "ZdText",
        "text": "<<row.text>>"
      }
    ]
  },
  "datasource": {
    "data": [
      {
        "name": "task-name-1",
        "column": "1",
        "text": "Item 1"
      },
      {
        "name": "task-name-2",
        "column": "1",
        "text": "Item 2"
      }
    ]
  }
}

Basic Usage

Propriedades

NomeTipoPadrãoDescrição
columnsobject[]Define um array de IColumn

IKanbanColumn

NomeTipoPadrãoDescrição
tasksobject[]Define um array de ITask
backgroundColorstringDefine a cor de fundo da coluna
nameColorstringDefine a cor do titulo da coluna
titlestringDefine o titulo da coluna, se não for definido sera utilizado o valor da propriedade name
animationnumber200Define o tempo da animação de arrastar das tasks em milissegundos

IKanbanTask

O componente KanbanTask extende do componente ZdCard tento assim todas as suas propriedades

NomeTipoPadrãoDescrição
elevationnumber1Define o valor da elevação do card do task

FAQs

Package last updated on 20 Aug 2024

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