x11 Posted June 17, 2020 Share Posted June 17, 2020 placeholder указываю вот так: combo.JSInterface.JSConfig('placeholder', [icon + ' ' + placeholder]); combo - это TuniCustomCombobox в данном случае TUnimDBLookupComboBox. В других темах отображается. Quote 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: В других темах отображается. Здравствуйте, Я не смог воспроизвести. Quote 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>" Quote 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? Quote Link to comment Share on other sites More sharing options...
x11 Posted June 18, 2020 Author Share Posted June 18, 2020 Вы не поняли. Еще раз. placeholder не отображается, если заполнено свойство FieldLabel и включена тема material. Quote 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, я проверю. Quote 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 Quote Link to comment Share on other sites More sharing options...
x11 Posted June 18, 2020 Author Share Posted June 18, 2020 Спасибо. Надеюсь, в новой версии будет исправление. 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted September 27, 2020 Author Share Posted September 27, 2020 Я так полагаю, в релизе 1536 это не исправлено? Мне кажется, что ни единой моей проблемы в этом релизе не исправлено 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.