x11 Posted June 17, 2020 Share Posted June 17, 2020 placeholder указываю вот так: combo.JSInterface.JSConfig('placeholder', [icon + ' ' + placeholder]); combo - это TuniCustomCombobox в данном случае TUnimDBLookupComboBox. В других темах отображается. Link to comment Share on other sites More sharing options...
Sherzod Posted June 17, 2020 Share Posted June 17, 2020 1 hour ago, x11 said: В других темах отображается. Здравствуйте, Я не смог воспроизвести. Link to comment Share on other sites More sharing options...
x11 Posted June 18, 2020 Author Share Posted June 18, 2020 В свойство FieldLabel добавьте какую-нибудь текстовую иконку fontawesome, например, "<i class="fas fa-percentage"></i>" Link to comment Share on other sites More sharing options...
Sherzod Posted June 18, 2020 Share Posted June 18, 2020 10 minutes ago, x11 said: В свойство FieldLabel добавьте какую-нибудть текстовую иконку Но это уже не placeholder? Link to comment Share on other sites More sharing options...
x11 Posted June 18, 2020 Author Share Posted June 18, 2020 Вы не поняли. Еще раз. placeholder не отображается, если заполнено свойство FieldLabel и включена тема material. Link to comment Share on other sites More sharing options...
Sherzod Posted June 18, 2020 Share Posted June 18, 2020 19 minutes ago, x11 said: placeholder не отображается, если заполнено свойство FieldLabel и включена тема material. OK, я проверю. Link to comment Share on other sites More sharing options...
Sherzod Posted June 18, 2020 Share Posted June 18, 2020 1 hour ago, x11 said: placeholder не отображается, если заполнено свойство FieldLabel и включена тема material. Решение на данный момент: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin with UnimDBLookupComboBox1 do begin JSInterface.JSConfig('labelAlign', ['left']); //<----- JSInterface.JSAddListener('painted', 'function(){this.inputElement.setStyle("font-family", this.inputElement.getStyle("font-family") + ", FontAwesome")}'); JSInterface.JSConfig('placeholder', [#$f002 +' Search']); end; end; 1 Link to comment Share on other sites More sharing options...
x11 Posted June 18, 2020 Author Share Posted June 18, 2020 Спасибо. Надеюсь, в новой версии будет исправление. 1 Link to comment Share on other sites More sharing options...
x11 Posted September 27, 2020 Author Share Posted September 27, 2020 Я так полагаю, в релизе 1536 это не исправлено? Мне кажется, что ни единой моей проблемы в этом релизе не исправлено Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now