You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -238,6 +238,15 @@ Type: React Component
238
238
239
239
The `Menu` component that needs to be updated depending on the current selection. The component will receive object from `monitor.getItem()` in its props with `item` as key. All the other props will be simply passed through.
240
240
241
+
## Customization
242
+
The higher order component created using `ContextMenuLayer` can accept the following props.
243
+
244
+
**renderTag**
245
+
246
+
Type: React Element (optional)
247
+
248
+
The element inside which the Component must be wrapped. By default `div` is used. But this prop can used to customize it.
249
+
241
250
## Credits
242
251
This project is based on the ideas from [react-dnd](https://github.com/gaearon/react-dnd) by [Dan Abramov](https://github.com/gaearon).
0 commit comments