FlexLayout icon indicating copy to clipboard operation
FlexLayout copied to clipboard

Question: Any way to customize the drag handle when using addTabWithDragAndDropIndirect

Open balazs-edes-lab49 opened this issue 4 years ago • 5 comments

Is there any way to custom-render the drag handle, when creating tabs indirectly? I can override the classnames, and the text inside (what the js api allows), but I'd like to custom render this element:

Screen Shot 2021-09-15 at 2 37 49 PM

Is this possible?

balazs-edes-lab49 avatar Sep 15 '21 12:09 balazs-edes-lab49

No, sorry, there is no callback for rendering this element

nealus avatar Sep 15 '21 13:09 nealus

Added new callback prop: onDragRectRender that should cover this

nealus avatar Oct 12 '21 19:10 nealus

Awesome, thank you! Is this targeted for v0.5.18?

balazs-edes-lab49 avatar Oct 13 '21 10:10 balazs-edes-lab49

yes it will be in the next update

nealus avatar Oct 13 '21 11:10 nealus

yes it will be in the next update

It's possible in latest version? For example, I need remove DragDrop.instance.addGlass(this.onCancelAdd);. And how I can add funcional of drag rect in my custom div element in tabset? On screeeshot my custom drag element and it must draggble like drag rect image

An2anI1ow avatar Jan 25 '24 08:01 An2anI1ow