Jump to content

В теме material не отображается placeholder


x11

Recommended Posts

placeholder указываю вот так:

combo.JSInterface.JSConfig('placeholder', [icon + ' ' + placeholder]);

combo - это TuniCustomCombobox в данном случае TUnimDBLookupComboBox.

В других темах отображается.

Screenshot_10.jpg

Screenshot_11.jpg

Link to comment
Share on other sites

Вы не поняли.

Еще раз.

placeholder не отображается, если заполнено свойство FieldLabel и включена тема material.

Link to comment
Share on other sites

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;

 

  • Like 1
Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...