Skip to content

Commit

Permalink
chore: update docs for nodeTitleRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasLohoff committed Dec 11, 2024
1 parent 25011cc commit 4fdca98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LayerTree/LayerTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ interface OwnProps {
/**
* A function that can be used to pass a custom node title. It can return
* any renderable element (String, Number, Element etc.) and receives
* the layer instance of the current tree node.
* the layer instance of the current tree node. Please note: If you want
* to use draggable components in this element, you will have to stop
* drag events on these elements by setting `onDragStart`.
*
* See https://github.com/terrestris/react-geo/pull/4155
*/
nodeTitleRenderer?: (layer: OlLayerBase) => React.ReactNode;

Expand Down

0 comments on commit 4fdca98

Please sign in to comment.