Fork me on GitHub
#cljfx
<
2023-06-10
>
DerTev22:06:28

Any idea, whats wrong with my code? The items are not shown as expected...

{:fx/type :table-view
                                          :columns [{:fx/type :table-column
                                                     :text "Hello"
                                                     :sortable false}
                                                    {:fx/type :table-column
                                                     :text "World"}]
                                          :items [["How" "are"]
                                                  ["ya" "?"]]}

DerTev22:06:04

I think I need to do something with the other :table-... 's but idk

Martin Půda05:06:07

{:fx/type :table-view
 :columns [{:fx/type :table-column
            :cell-value-factory first
            :text "Hello"
            :sortable false}
           {:fx/type :table-column
            :cell-value-factory second
            :text "World"}]
 :items [["How" "are"]
         ["ya" "?"]]}

👍 2
DerTev10:06:12

Ah, I see, thanks!