https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • t

    tall-teacher-57409

    03/06/2023, 8:38 AM
    thank you
  • b

    bright-gpu-74537

    03/06/2023, 8:38 AM
    np
  • f

    full-journalist-82607

    03/06/2023, 11:03 AM
    Humm, is there a way to have just a few tabbarbuttons that are closable ? TabBarButtonis private, so I can't access the "closable" property
  • b

    bright-gpu-74537

    03/06/2023, 11:06 AM
    hmmmm, there isnt currently
  • b

    bright-gpu-74537

    03/06/2023, 11:06 AM
    you could maybe do some css hacks... gimme two secs
  • b

    bright-gpu-74537

    03/06/2023, 11:09 AM
    http://haxeui.org/builder/?b0781db8
  • b

    bright-gpu-74537

    03/06/2023, 11:10 AM
    ... another example of "css was such a good idea for haxeui" 🙂
  • f

    full-journalist-82607

    03/06/2023, 11:12 AM
    Oh cool. Thanks ! I'll know how to adapt it. Yeah better than fighting with privateAcess and access.
  • f

    few-pizza-8232

    03/06/2023, 1:21 PM
    Damn I was really overthinking it. I'll give that a shot
  • f

    few-pizza-8232

    03/06/2023, 1:21 PM
    Thanks!
  • t

    tall-teacher-57409

    03/06/2023, 1:40 PM
    what does an item renderer do?
  • t

    tall-teacher-57409

    03/06/2023, 1:41 PM
    in containers like listviews and treeviews
  • f

    full-journalist-82607

    03/06/2023, 1:54 PM
    an item renderer is an item that is copied in each line of the listview/treeview @tall-teacher-57409
  • f

    full-journalist-82607

    03/06/2023, 1:58 PM
    in the listview example http://haxeui.org/explorer/#containers/list_views
    Copy code
    xml
     <listview id="lv2" width="200" height="150" selectedIndex="1">
                            <item-renderer layoutName="horizontal" width="100%">
                                <checkbox id="complete" />
                                <label width="100%" id="item" verticalAlign="center" />
                                <image id="image" />
                            </item-renderer>
    Each line will be item that is layout that contains 3 components a checkbox a label and an image
  • b

    bumpy-engineer-49082

    03/06/2023, 2:00 PM
    Reminds me of React.
  • t

    tall-teacher-57409

    03/06/2023, 2:15 PM
    makes sense, thank you!
  • t

    tall-teacher-57409

    03/06/2023, 3:08 PM
    another question, what happens if you have more than one item renderer?
  • t

    tall-teacher-57409

    03/06/2023, 3:09 PM
    do they got merged somehow or what 🤔
  • b

    bright-gpu-74537

    03/06/2023, 3:13 PM
    it'll take the first one: http://haxeui.org/builder/?19ba4058
  • t

    tall-teacher-57409

    03/06/2023, 3:15 PM
    aha
  • t

    tall-teacher-57409

    03/06/2023, 3:15 PM
    thanks
  • t

    tall-teacher-57409

    03/06/2023, 3:16 PM
    also when you assigned to
    label
    an id of
    theLabel
    , did that also become an attribute for
    item
    ? idk if that makes sense
  • t

    tall-teacher-57409

    03/06/2023, 3:17 PM
    not sure how that works
  • f

    full-journalist-82607

    03/06/2023, 3:25 PM
    yes, it will do when it sets the items theLabel.value = "Item whatever". So for example, for a label the value is the shown text, for a checkbox, it's selected or not , etc.
  • t

    tall-teacher-57409

    03/06/2023, 3:26 PM
    ohhh, alright 👍
  • t

    tall-teacher-57409

    03/06/2023, 3:33 PM
    how does a grid exactly position its children? (sorry im asking a lot 😅 )
  • t

    tall-teacher-57409

    03/06/2023, 3:36 PM
    I think I'll have to experiment with that myself
  • t

    tall-teacher-57409

    03/06/2023, 3:51 PM
    I was lookin at the list view demo (sorry can't get a link atm), and it had two listviews but it seems like both of them were used somehow
  • t

    tall-teacher-57409

    03/06/2023, 3:52 PM
    thats the snippet
  • t

    tall-teacher-57409

    03/06/2023, 3:52 PM
    how was that possible
1...158215831584...1687Latest