Dropdown and Listview don´t show data

Hi,

I’m starting to use HaxeUI Openfl backend for my apps and I have a problem with the dropdown and listview component, they don’t show any data on the data field:

image

This is from a new “hello world” project and then adding the the xml from the component explorer:

<vbox style="padding: 5px;">
    <button text="Click Me!" onclick="this.text='Thanks!'" style="font-size: 24px;" />
    <dropdown text="Select Item">
            <data>
                <item value="Item 1" />
                <item value="Item 2" />
                <item value="Item 3" />
                <item value="Item 4" />
                <item value="Item 5" />
                <item value="Item 6" />
                <item value="Item 7" />
                <item value="Item 8" />
                <item value="Item 9" />
            </data>
        </dropdown>
    <listview id="lv1" width="200" height="150" selectedIndex="0">
        <data>
            <item value="Item 1" />
            <item value="Item 2" />
            <item value="Item 3" />
            <item value="Item 4" />
            <item value="Item 5" />
            <item value="Item 6" />
            <item value="Item 7" />
            <item value="Item 8" />
            <item value="Item 9" />
        </data>
    </listview> 
</vbox>

No more changes was made to the “hello world” project. My haxelib list:
actuate: [1.8.9]
advanced-layout: [0.9.1]
akifox-transform: [2.2.1]
box2d: [1.2.3]
format: [3.5.0]
haxeui-core: 1.1.2 [git]
haxeui-openfl: 1.1.0 [git]
hscript: [2.4.0]
hxcpp-debug-server: 1.2.4 [dev:c:\Users\devmain.vscode\extensions\vshaxe.hxcpp-debugger-1.2.4\hxcpp-debug-server]
hxcpp: 4.1.1 [4.1.15]
hxnodejs: [12.1.0]
layout: [1.2.1]
lime-samples: [7.0.0]
lime: 7.7.0 [7.8.0]
openfl-samples: [8.7.0]
openfl: 8.9.6 [8.9.7] 9.0.0
starling: 2.5.1 [git]
svg: [1.1.3]
swf: [3.0.0]
vscode-debugadapter: 1.40.0 [1.41.0]
vscode: 1.45.0 1.46.0 [1.47.0]

I’m using the git version, but the 1.1.0 shows the same thing.

Is anyone else having the same problem?

Another thing, and this one is for @ianharrigan (or both are probably), yesterday I filled a new bug issue for the openfl backend also, that when we add the SVG lib an error occurs and I can’t compile even the fresh “hello world” project. I don’t see that this and SVG issue are related, but we never know.

@ianharrigan, great job by the way, apart from this issue all seems to work fine and it’s a great library.

Hi, so i responded to the SVG issue on GH, im pretty sure i know what it is, i just need to think of a nice way to fix it.

As for this post, there was recently a change: HaxeUI v1.1 released! - #3 by ianharrigan

Basically, change “value” to “text” and everything should work fine.

Cheers,
Ian

Sorry, when I was writting this post, forgot to check the GH. Right, I’ll wait for the fix, thanks.

Oh, I didn´t even read the release notes. I dive in the component explorer and the Unexpected Vortices ([ohn Gabriele) tutorial, and started to play around HaxeUI and thought they were updated. Ok, thanks, I’ll continue my journey in the HaxeUI path.

Regards.

1 Like

Great - as for the component explorer - i have updated it (locally) to use text rather than value, ill make an update soon(ish) - doing some other stuff on the site also.

Good luck!

Thanks. Keep up the good work!

Regards.

1 Like