File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,9 @@ This is the container component that encapsulates the lanes and cards
170
170
| laneStyle | object | CSS style for every lanes |
171
171
| tagStyle | object | If cards have tags, use this prop to modify their style |
172
172
| cardDragClass | string | CSS class to be applied to Card when being dragged |
173
+ | cardDropClass | string | CSS class to be applied to Card when being dropped |
173
174
| laneDragClass | string | CSS class to be applied to Lane when being dragged |
175
+ | laneDropClass | string | CSS class to be applied to Lane when being dropped |
174
176
| components | object | Map of customised components. [ List] ( src/components/index.js ) of available. |
175
177
176
178
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ class BoardContainer extends Component {
112
112
draggable,
113
113
laneDraggable,
114
114
laneDragClass,
115
+ laneDropClass,
115
116
style,
116
117
onDataChange,
117
118
onCardAdd,
@@ -163,7 +164,7 @@ class BoardContainer extends Component {
163
164
orientation = "horizontal"
164
165
onDragStart = { this . onDragStart }
165
166
dragClass = { laneDragClass }
166
- dropClass = ""
167
+ dropClass = { laneDropClass }
167
168
onDrop = { this . onLaneDrop }
168
169
lockAxis = "x"
169
170
getChildPayload = { index => this . getLaneDetails ( index ) }
@@ -235,6 +236,7 @@ BoardContainer.propTypes = {
235
236
cardDraggable : PropTypes . bool ,
236
237
cardDragClass : PropTypes . string ,
237
238
laneDragClass : PropTypes . string ,
239
+ laneDropClass : PropTypes . string ,
238
240
onCardMoveAcrossLanes : PropTypes . func . isRequired ,
239
241
t : PropTypes . func . isRequired ,
240
242
}
@@ -258,7 +260,8 @@ BoardContainer.defaultProps = {
258
260
laneDraggable : true ,
259
261
cardDraggable : true ,
260
262
cardDragClass : 'react_trello_dragClass' ,
261
- laneDragClass : 'react_trello_dragLaneClass'
263
+ laneDragClass : 'react_trello_dragLaneClass' ,
264
+ laneDropClass : ''
262
265
}
263
266
264
267
const mapStateToProps = state => {
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ class Lane extends Component {
139
139
hideCardDeleteIcon,
140
140
cardDraggable,
141
141
cardDragClass,
142
+ cardDropClass,
142
143
tagStyle,
143
144
cardStyle,
144
145
components,
@@ -177,6 +178,7 @@ class Lane extends Component {
177
178
orientation = "vertical"
178
179
groupName = { this . groupName }
179
180
dragClass = { cardDragClass }
181
+ dropClass = { cardDropClass }
180
182
onDragStart = { this . onDragStart }
181
183
onDrop = { e => this . onDragEnd ( id , e ) }
182
184
onDragEnter = { ( ) => this . setState ( { isDraggingOver : true } ) }
@@ -285,6 +287,7 @@ Lane.propTypes = {
285
287
laneDraggable : PropTypes . bool ,
286
288
cardDraggable : PropTypes . bool ,
287
289
cardDragClass : PropTypes . string ,
290
+ cardDropClass : PropTypes . string ,
288
291
canAddLanes : PropTypes . bool ,
289
292
t : PropTypes . func . isRequired
290
293
}
You can’t perform that action at this time.
0 commit comments