I want to know how to do tree views with dragging,...
# compose-desktop
a
I want to know how to do tree views with dragging, and how to apply Rtl on compose desktop, these are the most wanted for me
k
You need to be more specific
For example, do you need to be able to drag the tree elements to reorder them? To drag a tree element somewhere else in your apps? To drag something from your app into the tree? To drag in or out of your app and in or out to other apps on the system?
The same for RTL. Do you want to track the currently selected language and apply its LTR/RTLness to the entire app? To know how to write RTL aware layouts? To internationalize your app including RTL languages like Arabic or Hebrew?
a
Hi Kirill, I want to be able tr reorder items in the tree view, change their parent, select multible items and drag them, like any regular tree view, at least basic drag operations for now,
I'm using:
Copy code
CompositionLocalProvider(
    LocalLayoutDirection provides LayoutDirection.Rtl
) {
to apply rtl, but doesn't have the same result as in android,
I also tries this for treeView
Copy code
<https://github.com/adrielcafe/bonsai>
but no drag options yet
a
I looked for tree libraries a couple years ago and couldn't find one that also supported drag and drop to reorder, so i ended up making my own
it's not fully generalized, has some bits specific to my app, but might not take too much to adapt? https://github.com/Wavesonics/hammer-editor/tree/develop/composeUi/src/commonMain/[…]krockstudios/apps/hammer/common/storyeditor/scenelist/scenetree
a
sure, it will help me, thank you