x11 Posted June 17, 2020 Posted June 17, 2020 placeholder указываю вот так: combo.JSInterface.JSConfig('placeholder', [icon + ' ' + placeholder]); combo - это TuniCustomCombobox в данном случае TUnimDBLookupComboBox. В других темах отображается. Quote
Sherzod Posted June 17, 2020 Posted June 17, 2020 1 hour ago, x11 said: В других темах отображается. Здравствуйте, Я не смог воспроизвести. Quote
x11 Posted June 18, 2020 Author Posted June 18, 2020 В свойство FieldLabel добавьте какую-нибудь текстовую иконку fontawesome, например, "<i class="fas fa-percentage"></i>" Quote
Sherzod Posted June 18, 2020 Posted June 18, 2020 10 minutes ago, x11 said: В свойство FieldLabel добавьте какую-нибудть текстовую иконку Но это уже не placeholder? Quote
x11 Posted June 18, 2020 Author Posted June 18, 2020 Вы не поняли. Еще раз. placeholder не отображается, если заполнено свойство FieldLabel и включена тема material. Quote
Sherzod Posted June 18, 2020 Posted June 18, 2020 19 minutes ago, x11 said: placeholder не отображается, если заполнено свойство FieldLabel и включена тема material. OK, я проверю. Quote
Sherzod Posted June 18, 2020 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
x11 Posted June 18, 2020 Author Posted June 18, 2020 Спасибо. Надеюсь, в новой версии будет исправление. 1 Quote
x11 Posted September 27, 2020 Author Posted September 27, 2020 Я так полагаю, в релизе 1536 это не исправлено? Мне кажется, что ни единой моей проблемы в этом релизе не исправлено Quote
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.