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?

ui.AddItem(new UIMenuListItem(
        "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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.