krakjoe / ui

Cross platform UI development in PHP
Other
519 stars 39 forks source link

[idea] UI\Controls\Combo::getSelectedText #16

Open remicollet opened 7 years ago

remicollet commented 7 years ago

Current method UI\Controls\Combo::getSelected rerieve an index, which is not always useful (as we don't know index when calling UI\Controls\Combo::append() and imply to keep a mirror array of index/value)

krakjoe commented 7 years ago

We need to go upstream with this. We want the append function to return the length, that would be enough to build on.