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

    bright-gpu-74537

    12/16/2019, 2:04 PM
    one possible idea, but i havent tried it yet, is to allow it to have a data source too (ie, implement IDataComponent)... then maybe all the items could come from a datasource, which, iirc, already allows for treestructures (i think)
  • u

    user

    12/16/2019, 3:12 PM
    @bright-gpu-74537 from my experience with datasource it doesnt allow tree structures. I personally did like you did in kodegarden i.e. have a scrollview and add custom components based on the datasource. But I like the idea of using dataSource. I agree with your's and Antriels point.
  • b

    bright-gpu-74537

    12/16/2019, 3:14 PM
    right, i thought it could handle n-depth data, will probably need to change that so it can handle it when i write the treeview composite
  • h

    helpful-state-84881

    12/16/2019, 7:41 PM
    @User Does drag-drop work on HaxeUI ? For example, would it be possible to make this kind of kanban board with cards, drag them to different swimlanes - like on your accordion from one group to another? https://wekan.github.io/
  • b

    bright-gpu-74537

    12/16/2019, 7:44 PM
    you could certainly make something like that... you would however (at the moment) have to implement the drag drop your self... Ive mentioned it before that im more than willing to put d&d into core, but im just not sure what features it should have, and i dont want to add something there that just never gets used
  • b

    bright-gpu-74537

    12/16/2019, 7:44 PM
    but all the events are there for you to impl it manually at the moment
  • h

    helpful-state-84881

    12/16/2019, 7:45 PM
    So I think it's just checking mouse events, and moving card position x y as needed?
  • h

    helpful-state-84881

    12/16/2019, 7:46 PM
    I'll try
  • b

    bright-gpu-74537

    12/16/2019, 7:47 PM
    basically, yeah, heres an example (video, not code)... https://vimeo.com/manage/199337179/general
  • b

    bright-gpu-74537

    12/16/2019, 7:47 PM
    you can just skip to like mid way through i think for the actual dragging... nothing really complex going on there really, as you say, just mouse down / mouse move / mouse up events
  • h

    helpful-state-84881

    12/16/2019, 7:48 PM
    That vimeo video is private, I can not view it
  • b

    bright-gpu-74537

    12/16/2019, 7:48 PM
    but the number of times ive written that same code shows it probably should be in core at some point... just guess ill have to think about what features it has
  • b

    bright-gpu-74537

    12/16/2019, 7:48 PM
    oh...
  • b

    bright-gpu-74537

    12/16/2019, 7:49 PM
    https://vimeo.com/199337179
  • b

    bright-gpu-74537

    12/16/2019, 7:49 PM
    sent you the "manage" link i think
  • h

    helpful-state-84881

    12/16/2019, 7:53 PM
    Is it possible to make infinite scroll ? So only visible items are loaded to browser?
  • b

    bright-gpu-74537

    12/16/2019, 7:55 PM
    virtualisation? For listview / tableview, yeah
  • b

    bright-gpu-74537

    12/16/2019, 7:55 PM
    hadnt really thought about it for property grids
  • b

    bright-gpu-74537

    12/16/2019, 7:58 PM
    you could make a scrollview virtual too... but you would be responsible then for actually show the correct items (which is what listview / tableview do in virtual mode)
  • h

    helpful-state-84881

    12/16/2019, 8:08 PM
    Well, that is I would need to do anyway. Current version loads all cards, there is some bug.
  • h

    helpful-state-84881

    12/16/2019, 8:09 PM
    Current version is just html+css+jquery drag-drop etc
  • b

    bright-gpu-74537

    12/16/2019, 8:09 PM
    right... so yeah, haxeui scrollview does support virtual scrolling
  • h

    helpful-state-84881

    12/16/2019, 8:10 PM
    What is needed to use HaxeUI on mobile app?
  • b

    bright-gpu-74537

    12/16/2019, 8:11 PM
    depends on the target really... there is haxeui-html5, haxeui-openfl, haxeui-kha (this needs to be reworked for mobile, its got issues) and haxeui-android for native (which doesnt have an official release yet)
  • b

    bright-gpu-74537

    12/16/2019, 8:11 PM
    but no haxeui-ios... ... 😦
  • h

    helpful-state-84881

    12/16/2019, 8:12 PM
    Well, some working way of making native-like UI on mobile
  • b

    bright-gpu-74537

    12/16/2019, 8:13 PM
    if you wanted to draw the components yourself, then probably haxeui-html5 or haxeui-openfl i guess would probably be the best bet... if you wanted actual native components then haxeui-android is the way to go... it needs a little more work though, and i have no idea how things like infinite scrolling will work there
  • h

    helpful-state-84881

    12/16/2019, 8:13 PM
    Is there any way to make it working on ios ?
  • b

    bright-gpu-74537

    12/16/2019, 8:14 PM
    pure native ... ... ? I think it should be possible, hugh (hxcpp guy) showed hxcpp to native in an ios application one year... so i guess that could also have access to all the UI libs too? But i certainly have tried it... so i honestly have no clue
  • b

    bright-gpu-74537

    12/16/2019, 8:15 PM
    openfl i think works on mobile, so presumably haxeui-openfl does too... but i also cant personally confirm that, i dont have an iphone
1...155156157...1687Latest