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

    bright-gpu-74537

    07/30/2020, 8:07 AM
    im not sure i want to explicity type the result as Component as it could be other stuff too (Button, Box, etc)... but if its not already typed it might be nice (if thats what you mean)
  • b

    brainy-machine-50829

    07/30/2020, 8:07 AM
    But that's only useful if you know the type, and it's not already inferred from the expr itself.
  • b

    bright-gpu-74537

    07/30/2020, 8:07 AM
    ok, nice, i didnt know that, so thats good to know...
  • b

    bright-gpu-74537

    07/30/2020, 8:08 AM
    but yeah, i think letting the compiler infer the type probably makes more sense
  • k

    kind-policeman-40412

    07/30/2020, 8:08 AM
    I think that mention to correctly type the expected result in documentation is enough.
  • b

    brainy-machine-50829

    07/30/2020, 8:08 AM
    The
    (foo:Bar)
    part works in normal code too. Type check it's called, I think.
  • b

    brainy-machine-50829

    07/30/2020, 8:08 AM
    https://haxe.org/manual/expression-type-check.html
  • b

    bright-gpu-74537

    07/30/2020, 8:08 AM
    something in neko breaks that when its explicitly typed as Dynamic is all i guess
  • b

    brainy-machine-50829

    07/30/2020, 8:09 AM
    It would cause it to search for the fields via reflection, but if the fields are part of it (not static extension or some abstract type stuff) it should find it.
  • b

    brainy-machine-50829

    07/30/2020, 8:10 AM
    What could happen is DCE removing it, but the same would happen on other targets. That goes for the aforementioned things too.
  • k

    kind-policeman-40412

    07/30/2020, 8:10 AM
    but afaik DCE is off by default.
  • b

    brainy-machine-50829

    07/30/2020, 8:12 AM
    It's constrained to the standard library by default, so yeah.
  • k

    kind-policeman-40412

    07/30/2020, 8:12 AM
    oh you're right. that's not the same )
  • b

    bright-gpu-74537

    07/30/2020, 8:12 AM
    it sounds like its just a neko bug
  • k

    kind-policeman-40412

    07/30/2020, 8:29 AM
    @User no support for disabled components? like
    button.disabled = true;
    and it just grays out and does not react to any events.
  • k

    kind-policeman-40412

    07/30/2020, 8:30 AM
    I can remove the listener of course but that would be handy )
  • k

    kind-policeman-40412

    07/30/2020, 8:31 AM
    since I could click a button, disable it, wait until it request something from server and read result async, then enable it back again.
  • b

    bright-gpu-74537

    07/30/2020, 8:31 AM
    component.disabled = true / false
    should work fine
  • b

    bright-gpu-74537

    07/30/2020, 8:32 AM
    unless ive somehow broken it recently
  • k

    kind-policeman-40412

    07/30/2020, 8:32 AM
    oh great. just didn't found that in examples. great it exist
  • b

    bright-gpu-74537

    07/30/2020, 8:34 AM
    http://haxeui.org/builder/?xwtgkf
  • b

    bright-gpu-74537

    07/30/2020, 8:35 AM
    hmmmm, weird that that isnt in the api docs... it seems my docgen misses out a load of properties / functions :/
  • k

    kind-policeman-40412

    07/30/2020, 8:41 AM
    Oh I didn't check in API docs for this property just examples. But yeah I see it's missing in API docs too. Also should mention that even if it was listed in Component it should ideally be listed as inherited property for Button (and any other component) docs too 😉 That would be just awesome.
  • k

    kind-policeman-40412

    07/30/2020, 8:42 AM
    yeah, that's a lot of stuff to look for %)
  • k

    kind-policeman-40412

    07/30/2020, 8:44 AM
    oh I see there's a checkboxes to show all the properties.
  • k

    kind-policeman-40412

    07/30/2020, 8:44 AM
    sorry )
  • b

    bright-gpu-74537

    07/30/2020, 8:59 AM
    yeah, the docgen itself is doing something strange
  • b

    bright-gpu-74537

    07/30/2020, 8:59 AM
    no idea what - ill check it out at the weekend
  • l

    limited-advantage-32748

    07/30/2020, 8:29 PM
    I'm running into a problem where if I extend a component and have the class expect an argument, i get compile errors in ``haxe.ui.macros.Macro.hx``. I have a github issue drafted, but I want to make sure if this problem is already known
  • l

    limited-advantage-32748

    07/30/2020, 8:30 PM
    @User
1...330331332...1687Latest