It is possible to make the entire board editable by setting the editable prop to true. Refer to stories folder for examples on many more options for customization. Pass CSS style props for cards in this laneĭisallow adding card button in this lane (default: false) If cards have tags, use this prop to modify their styleĬSS class to be applied to Card when being draggedĬSS class to be applied to Card when being droppedĬSS class to be applied to Lane when being draggedĬSS class to be applied to Lane when being dropped You can specify either one key as a String. Language of compiled texts ("en", "ru", "pt-br"). Used to specify the logic to sort cards on a lane: laneSortFunction(card1, card2) This is a special function that providers a publishHook to pass new events to the board. Card clicks are not propagated to lane click eventĬalled when a lane is scrolled to the end: onLaneScroll(requestedPage, laneId) Default: falseĭisable showing the delete icon to the top right corner of the card (when board is editable)Īllow inline lane title edit Default: falseĬallback function triggered when card drag is started: handleDragStart(cardId, laneId)Ĭallback function triggered when card drag ends, return false if you want to cancel drop: handleDragEnd(cardId, sourceLaneId, targetLaneId, position, cardDetails)Ĭallback function triggered when lane drag is started: handleLaneDragStart(laneId)Ĭallback function triggered when lane drag ends: handleLaneDragEnd(removedIndex, addedIndex, payload)Ĭalled everytime the data changes due to user interaction or event bus: onDataChange(newData)Ĭalled when a card is clicked: onCardClick(cardId, metadata, laneId)Ĭalled when a new card is added: onCardAdd(card, laneId)Ĭalled before delete a card, please call the callback() if confirm to delete a card: onConfirmCardDelete(callback)Ĭalled when a card is deleted: onCardDelete(cardId, laneId)Ĭalled when a card is moved across lanes onCardMoveAcrossLanes(fromLaneId, toLaneId, cardId, index)Ĭalled when a new lane is added: onLaneAdd(params)Ĭalled when a lane is deleted onLaneDelete(laneId)Ĭalled when a lane attributes are updated onLaneUpdate(laneId, data)Ĭalled when a lane is clicked onLaneClick(laneId). Allow cards to be added or deleted Default: falseĪllows new lanes to be added to the board. This is the container component that encapsulates the lanes and cards Required parameters Name Since version 2.2 these properties are removed: addLaneTitle, addCardLink, customLaneHeader, newCardTemplate, newLaneTemplate,Īnd customCardLayout with children element.įollow upgrade instructions to make easy migration. Import Board from 'react-trello/src' Upgradeīreaking changes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |