Dinkin Posted October 9, 2023 Share Posted October 9, 2023 Добрый день. Могу ли я как то добавить иконку в отображение компонента, и "TextHint" для Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 9, 2023 Share Posted October 9, 2023 Добрый день, 43 minutes ago, Dinkin said: TextHint Это и есть EmptyText: 1 Quote Link to comment Share on other sites More sharing options...
Dinkin Posted October 9, 2023 Author Share Posted October 9, 2023 Спасибо, а что на счет иконки? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 9, 2023 Share Posted October 9, 2023 3 minutes ago, Dinkin said: а что на счет иконки? Я проанализирую, но на форуме есть решения (для прежних версий). Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 9, 2023 Share Posted October 9, 2023 2 hours ago, Dinkin said: а что на счет иконки? "One possible solution": function afterrender(sender, eOpts) { sender.inputEl.setStyle('padding-left', '25px'); sender.iconEl = Ext.dom.Helper.insertBefore(sender.inputEl, { tag: 'span', class: 'x-fa fa-search', style: 'position: absolute; font-size: 1.4em; padding-left: 5px;' }); var iconEl = Ext.get(sender.iconEl); iconEl.setStyle('top', sender.getHeight()/2 - iconEl.getHeight()/2 + 'px'); } 1 Quote Link to comment Share on other sites More sharing options...
Dinkin Posted October 9, 2023 Author Share Posted October 9, 2023 Спасибо. Я извиняюсь, а это куда вставлять?) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 9, 2023 Share Posted October 9, 2023 Just now, Dinkin said: а это куда вставлять?) UniEdit1.ClientEvents.ExtEvents -> 1 Quote Link to comment Share on other sites More sharing options...
Dinkin Posted October 9, 2023 Author Share Posted October 9, 2023 То что нужно)) 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.