DnD wrap?

44 views
Skip to first unread message

Mat

unread,
Mar 23, 2018, 5:23:46 PM3/23/18
to TiddlyWikiDev
@javascripteurs

This example of code for drag'n drop from W3C looks simple.

I hope to release TidBitz to the community soon. Briefly, it's a DnD UI to lower the threshold for creating TW things. A much needed feature will be to be able to rearrange arbitrary macrocalls in tiddlers. For example, it may look like so in edit mode;

<<tidbit foo>>
Some interspersed other content.
<
<tidbit bar>>
<
<tidbit frotz>>


...and the order of the macrocalls should be rearrangable from tiddler view mode. I guess this means to hover over the macro output and click to grab and drag it.

Is the W3C example here above relevant for this? It seems there that you basically wrap anything in a div that has some drop-attributes in contrast with the TW way that involves a separate list which sounds very circuitous - no?

I posted a github issue but fear it may have diverted into multiple requests and the kind replies from @JR seem to imply that the current TW solution is the way to go.

So, my question here is basically if it is possible to make some kind of "wrap" to put around arbitrary (any-)things in a tiddler to have them DnD-rearrangable - like in the W3C example?

<:-)
Reply all
Reply to author
Forward
0 new messages