joew Posted May 29, 2019 Posted May 29, 2019 (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 May 29, 2019 by joew
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now