ToolJet/docs/versioned_docs/version-2.33.0/widgets/kanban-board.md
Akshay 2d08d889de
Release: Community changes (v2.34.0) (#9226)
* add custom resolvers info and editable row selection info (#9057)

* fix system requirements icon

* add auth info for webhooks and fix casing

* add regex custom validation info (#9068)

* [docs]: Marketplace 1.7 updates (#9085)

* [docs] Amazon redshift plugin

* make minor improvements

* add and update docs for marketplace 1.7

* update order of plugins in overview to match sidebar

* create new version

---------

Co-authored-by: Shubhendra <withshubh@gmail.com>

* add the latest version in the versions.json file (#9094)

* [docs]: Update PDF component (#9088)

* update PDF component

* merged with develop and added changes to the new version

* update docs favicon: (#9118)

* [docs] SSO revamp (#9031)

* add method to set default language

* update image settings through custom css and update screenshots for getting started and tooljet concepts (#9158)

* fix read documentation button

* fix formatting for setup icons (#9172)

* fix sidebar link for aws lambda

* Update static media (#9175)

* updated the screenshots

* reduced the gif size

* reverted the package.json file

* edited the zoomed in images and replaced some gifs with screenshots

* removed one gif

* update static media

* update file names

* update toolbar

* fix file names

* fix: dynamodb img path

* update media for org management dashboard

* fix: casing and formatting

* update workspace constant media

* update media in workspace settings and github

* update github sso

* minor change to github sso docs

* minor fix

* update google sso

* change includeCurrentVersion flag to false

---------

Co-authored-by: Asjad Ahmed Khan <iitasjad2001@gmail.com>
Co-authored-by: Asjad Ahmed Khan <60435499+2001asjad@users.noreply.github.com>
Co-authored-by: Karan Rathod <karan.altcampus@gmail.com>

* Feature: Engagespot plugin (#9012)

* feat(plugins): added engagespot plugin

* feat(docs): added engagespot plugin docs

* chore(engagespot-plugin): revised copywritings

* Feature: Databricks data source (#9174)

* plugin-created

* Databricks integration

* icon, error handling

* removed unrelated changes from marketplace and frontend package-lock.json removed runAsync and maxRows timeouts pending

* timeout implementation

* socket timeout and error handling

* resolve comments

* resolve comments2

* solved render issue test connection improvements

* solved undefined error

* fix TJDB not null value fail for is operation (#9055)

* fix TJDB not null value fail for is operation

* handling not null and null case insenstive values

* Support for marketplace plugin deploy on render preview app (#9221)

* Fix for marketplace error on render preview app

* add marketplace build command

* Adding new workflow for building marketplace plugin

* removed render app creation

* [:docs] Add documentation for Databricks plugin (#9224)

* add docs for databricks

* update databricks docs

* update docs

* remove ref to clusters

* bump to v2.34.0

* Fixed data source cypress failure (#9227)

* updated spec with required text

* updated mongodb and import spec

* updated import spec

---------

Co-authored-by: Karan Rathod <karan.altcampus@gmail.com>
Co-authored-by: Adish M <44204658+adishM98@users.noreply.github.com>
Co-authored-by: Midhun G S <gsmithun4@gmail.com>
Co-authored-by: Shubhendra <withshubh@gmail.com>
Co-authored-by: Aman Regu <amanregu@gmail.com>
Co-authored-by: Asjad Ahmed Khan <iitasjad2001@gmail.com>
Co-authored-by: Asjad Ahmed Khan <60435499+2001asjad@users.noreply.github.com>
Co-authored-by: Jobin Jose <129726530+jobin-logidots@users.noreply.github.com>
Co-authored-by: Syed Mohammad Akhtar Rizvi <85864291+ShazanRizvi@users.noreply.github.com>
Co-authored-by: blank0537 <111295371+blank0537@users.noreply.github.com>
Co-authored-by: Mekhla Asopa <59684099+Mekhla-Asopa@users.noreply.github.com>
2024-03-29 19:13:26 +05:30

11 KiB

id title
kanban Kanban

Kanban

Kanban component allows you to visually organize and prioritize your tasks with a transparent workflow. You can set the number of columns to display, enable/disable the add cards button, and bind data to the cards.

ToolJet - Component Reference - Kanban Component

:::caution Restricted components Certain components are restricted from being placed within the Card and Popout of the Kanban component.

  • Card: Calendar, Kanban, Form, Tabs, Modal, ListView, Container
  • Popout: Calendar, Kanban :::

Setting Card Data

To dynamically populate Kanban cards, you can use the cardData key.

For instance, you can set the Data property of a Text component on a card using the below code:

{{cardData.title}}
// Replace title with the key in your data

Events

To add an event, click on the component handle to open the component properties on the right sidebar. Go to the Events section and click on Add handler.

ToolJet - Component Reference - Kanban component

Just like any other event on ToolJet, you can set multiple handlers for any of the above mentioned events.

:::info Check Action Reference docs to get the detailed information about all the Actions.

Check the Component Specific Action available for Kanban. :::

On Update

On update event is triggered whenever the card data (id, title, description, or columnID) is updated using the component specific actions.

On add card click

This event is triggered whenever the Add card button on the kanban is clicked.

Card removed

This event is triggered whenever the card is deleted from the kanban by dragging it into the bottom delete box or using component specific action.

Card added

This event is triggered whenever a card is added on the kanban using the component specific action.

Card moved

This event is triggered whenever the card's position is changed on the kanban or using the component specific action.

Card selected

This event is triggered whenever a card is clicked to open the modal.

Properties

ToolJet - Component Reference - Kanban component

:::caution

  • It is mandatory to provide id for each column in the column data field. The id can be of type string or number.
  • It is mandatory to provide id, and columnId for each card in the Card data field. The id and columnId can be of type string or number. :::
Properties description Expected value
Column Data Enter the columns data - id and title in the form of array of objects or from a query that returns an array of objects. {{[{ "id": "c1", "title": "to do" },{ "id": "c2", "title": "in progress" },{ "id": "c3", "title": "Completed" }]}} or {{queries.xyz.data}}
Card Data Enter the cards data - id, title and columnId in the form of array of objects or from a query that returns an array of objects. {{[{ id: "r1", title: "Title 1", description: "Description 1", columnId: "c1" },{ id: "r2", title: "Title 2", description: "Description 2", columnId: "c2" },{ id: "r3", title: "Title 3", description: "Description 3",columnId: "c3" }]}} or {{queries.abc.data}}
Card Width Set the width of the card This property expects a numerical value. By default, the value is set to {{302}}
Card Height Set the width of the card This property expects a numerical value. By default, the value is set to {{100}}
Enable Add Card This property allows you to show or hide the +Add Cards button on the Kanban. By default its enabled, you can programmatically set value to {{true}} or {{false}} to enable/disable button by clicking on the Fx next to it
Show Delete button This property allows you to show or hide the Drop here to delete cards section at the bottom of the kanban. By default its enabled, you can programmatically set value to {{true}} or {{false}} to enable/disable button by clicking on the Fx next to it

General

Tooltip

A Tooltip is often used to specify extra information about something when the user hovers the mouse pointer over the component.

Under the General accordion, you can set the value in the string format. Now hovering over the component will display the string as the tooltip.

ToolJet - Component Reference - Kanban component

Layout

ToolJet - component Reference - Kanban component
Layout description Expected value
Show on desktop Toggle on or off to display the component in desktop view. You can programmatically set the value by clicking on Fx to set the value {{true}} or {{false}}
Show on mobile Toggle on or off to display the component in mobile view. You can programmatically set the value by clicking on Fx to set the value {{true}} or {{false}}

Styles

ToolJet - Component Reference - Kanban component
Style Description
Disable If disabled or set to {{false}} the component will be locked and becomes non-functional. By default, its disabled i.e. its value is set to {{true}} .
Visibility This is to control the visibility of the component. If {{false}}/disabled the component will not visible after the app is deployed. By default, it's enabled (set to {{true}}).
Accent color You can change the accent color of the column title by entering the Hex color code or choosing a color of your choice from the color picker.

Exposed variables

ToolJet - Widget Reference - Kanban component
Variable Description
updatedCardData The updatedCardData variable will hold the latest values of all the cards in the kanban. This variable won't have any values initially, it will have values only when any action on any of the card is performed like when the card is moved, added, deleted, or updated.
lastAddedCard The variable lastAddedCard holds the values of the the last added card. It holds the following data - id, title, description and columnId of the last added card. You can get the values using {{components.kanban1.lastAddedCard.title}}
lastRemovedCard The variable lastRemovedCard holds the properties of the card that has been recently deleted from the kanban. It holds the following data - id, title, description and columnId of the recently deleted card. You can get the values using {{components.kanbanboard1.lastRemovedCard.title}}
lastCardMovement The variable lastCardMovement holds the properties of the card that has been recently moved from its original position. It holds the following data - originColumnId, destinationColumnId, originCardIndex, destinationCardIndex and an object cardDetails which includes id, title, description and columnId of the moved card. You can get the values using {{components.kanbanboard1.lastCardMovement.cardDetails.title}} or {{components.kanbanboard1.lastCardMovement.destinationCardIndex}}
lastSelectedCard The variable lastSelectedCard holds the id, title, columnId, and description of the last selected(clicked to view) card on the kanban. You can get the values using {{components.kanban1.lastSelectedCard.columnId}}
lastUpdatedCard The variable lastUpdatedCard holds the id, title, description, and columnId of the last updated card(using componenet specific action). You can get the values using {{components.kanban1.lastUpdatedCard.columnId}}
lastCardUpdate The variable lastCardUpdate holds the old an new values of the property that has been changed in the card(using componenet specific action). You can get the values using {{components.kanban1.lastCardUpdate[0].title.oldValue}}

Component specific actions (CSA)

Following actions of kanban component can be controlled using the component specific actions(CSA):

Actions Description
updateCardData Update the card data of kanban component via a component-specific action within any event handler. Additionally, you have the option to employ a RunJS query to execute component-specific actions such as components.kanban1.updateCardData('c1', {title: 'New Title'})
moveCard Move a card from one column to other column on the kanban via a component-specific action within any event handler. Additionally, you have the option to employ a RunJS query to execute component-specific actions such as await components.kanban1.moveCard('card id,'column id') ex: await components.kanban1.moveCard('c1','r2')
addCard Add a card onto the kanban via a component-specific action within any event handler. Additionally, you have the option to employ a RunJS query to execute component-specific actions such as await components.kanban1.addCard('c1', {title: 'New Title'})
deleteCard Delete a card from the kanban via a component-specific action within any event handler. Additionally, you have the option to employ a RunJS query to execute component-specific actions such as await components.kanban1.deleteCard('card id') ex: await components.kanban1.deleteCard('c2')