docs: Nonfunctional Example code in "/objects/Dropdown" #117

Open
opened 2024-08-04 04:14:20 +08:00 by Messier1071 · 0 comments
Messier1071 commented 2024-08-04 04:14:20 +08:00 (Migrated from github.com)

** Where? **

in this example, item.text is nil and item is a string saying "value changed"
image
image
image

** Possible solution **
updating the example to display the last field

aDropdown:onChange(function(self,Event, item)
  basalt.debug(Event)
  basalt.debug("Selected item: ".. item.text)
  
end)

** Others **
thank you for making such a library

** Checklist **
[X] I am looking at the latest version of the docs.
https://basalt.madefor.cc/#/objects/Dropdown

** Where? ** in this example, item.text is nil and item is a string saying "value changed" ![image](https://github.com/user-attachments/assets/950d591f-e606-4f25-a728-b66e57494e20) ![image](https://github.com/user-attachments/assets/271e86bf-5844-4722-bfd0-48a10d9d28aa) ![image](https://github.com/user-attachments/assets/7149cbcc-289d-42d1-9d65-cb9ff8306e7e) ** Possible solution ** updating the example to display the last field ```lua aDropdown:onChange(function(self,Event, item) basalt.debug(Event) basalt.debug("Selected item: ".. item.text) end) ``` ** Others ** thank you for making such a library ** Checklist ** [X] I am looking at the latest version of the docs. [https://basalt.madefor.cc/#/objects/Dropdown](https://basalt.madefor.cc/#/objects/Dropdown)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GitHub/Basalt#117
No description provided.