Jump to content

Search tagField items


fiorilli

Recommended Posts

10 hours ago, fiorilli said:

yes, a way to filter the items to reduce the total and facilitate the search. like combobox

Hello,

You can try this approach:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniTagField1.JSInterface do
  begin
    JSConfig('filterPickList', [True]);
    JSConfig('queryMode', ['local']);
  end;
end;

 

Link to comment
Share on other sites

On 9/23/2020 at 2:18 AM, Sherzod said:

Hello,

You can try this approach:


procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniTagField1.JSInterface do
  begin
    JSConfig('filterPickList', [True]);
    JSConfig('queryMode', ['local']);
  end;
end;

 

worked well. thank you!

Link to comment
Share on other sites

  • 3 years later...
8 hours ago, Sherzod said:

Olá@eduardosuruagy

Você conseguiu alcançar o sucesso?

I'm having trouble cleaning, after I used the commands below, I can't clean it. Below is an example video and the test system.

procedure TUniMainModule.UniGUIMainModuleNewComponent(AComponent: TComponent);
begin
   if AComponent is TUniTagField then
   begin
     (AComponent as TUniTagField).ClearButton := True;

     with (AComponent as TUniTagField).JSInterface do
     begin
       JSConfig('filterPickList', [True]);
       JSConfig('anyMatch', [True]);Nova pasta.rar
       JSConfig('queryMode', ['local']);
     end;
   end;
end;

Link to comment
Share on other sites

4 hours ago, eduardosuruagy said:

I'm having trouble cleaning

We will check.

Try this workaround for now:

procedure TMainForm.UniButton2Click(Sender: TObject);
begin
  UniTagField1.Clear;
  UniTagField1.JSInterface.JSCallDefer('getStore().removeAll', [], 100);
end;

 

Link to comment
Share on other sites

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...