joew

Help with NativeUI, please

Recommended Posts

Posted (edited)

I'm creating an resource with NativeUI and I've some troubles. I can't find on the documentation so i really appreciate any help.

I created one menu with UIMenuListItem and i used the exemple on documentation: ui.ItemSelect.on(item => { }

The question are:

1) item.SelectedItem.DisplayText get the item's display text. But how could i get the item's caption, please?
E.G: 

ui.AddItem(new UIMenuListItem(
        "Color",
        "Select one color",        
        new ItemsCollection(["Blue", "Red", "Green"])
));

I want get the value: "Color" instead of "Blue". "Red" or "Green".
SOLVED: item.Text

2) The event: ui.ItemSelect.on(item => { } triggers after i press RETURN key. How could i trigger the event after i changed the item's value, without the need to press Return, please?

Thank you very much, have a nice day! 

Edited by joew

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.