Pyroxenium / Basalt

A UI Framework for CC:Tweaked
MIT License
194 stars 38 forks source link

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

Open Messier1071 opened 3 months ago

Messier1071 commented 3 months ago

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