@ambrosebs hi! I was on vacation, so sorry for late reply. I released 1.3.3 that supports observing tab reordering, looks like this:
(fx/on-fx-thread
(fx/create-component
{:fx/type :stage
:showing true
:scene {:fx/type :scene
:root {:fx/type :tab-pane
:tab-drag-policy :reorder
:on-tabs-changed #(prn :on-tabs-changed %)
:tabs [{:fx/type :tab
:text "hello"}
{:fx/type :tab
:text "world"}]}}}))
@vlaaad great! it was actually a good thing you didn't jump to fix it, gave me a chance to dig deep enough to understand how to add such functionality myself. I have a little example
app using tab panes that doesn't quite work yet, I'll try it out.
I'm still having trouble getting the context to agree with the TabPane. Here's an example
https://github.com/frenchy64/cljfx/pull/2/files#diff-a255fbf50bd8928321a032f24fda85a1
it starts up an app that looks like the left image. you can click "Create tab..." a couple of times to create tabs, but it quickly gets out of order with the context (displayed as "Current tab order:").
like above, the TabPane says c4f
is first, but the context says a83
is first.
pressing the "Rerender..." button makes the TabPane agree with the context tho