ExtJS Hack: How To Get Selected Index of ExtJS ComboBox ExtJS взломать: как получить выбранный индекс ExtJS ComboBox
ExtJS ComboBox doesn’t advertise, in its documentation, any way to get the selected index of a ComboBox. ExtJS ComboBox не реклама, в свою документацию, любой способ получения выбранного индекса ComboBox. Looking at the code I realized we can use the undocumented property selectedIndex. Глядя на код я понял, мы можем использовать имущество без документов selectedIndex. However there is a catch. Однако есть улова.
ComboBox.reset() doesn’t set the selectedIndex to -1, which it should. ComboBox.reset () не устанавливает selectedIndex в -1, которые следовало бы. So whenever you use selectedIndex, remember to reset it manually after reset(). Поэтому, если вы используете selectedIndex, не забудьте сбросить его вручную после сброса (). Otherwise it will return stale value. В противном случае он будет возвращаться устарела стоимости.
Filed under Поданного в соответствии с Headline News Headline News , How To Как , Javascript , Programming Программирование , Tech Note Технология Примечание , Web Веб | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | это статья |
Email this Article Отослать Статья
You may also like to read Вы можете также люблю читать |



































