Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass array to search bar? #17132

Closed
noki98 opened this issue Oct 17, 2023 · 1 comment
Closed

How to pass array to search bar? #17132

noki98 opened this issue Oct 17, 2023 · 1 comment

Comments

@noki98
Copy link

noki98 commented Oct 17, 2023

image

@Snuffleupagus
Copy link
Collaborator

As mentioned in #16247 (comment) this is not supported, since we want to have consistent findbar UX regardless of PDF.js build.

What however is supported is dispatching a "find"-event with a suitable query-argument. Hence, after obtaining a reference to the current eventBus, you can search e.g. as follows:

eventBus.dispatch("find", {
  type: "",
  query: ["Lorem ipsum", "foo bar"]
});

(Please keep in mind that this is first and foremost a bug tracker, and this issue is quite light on actionable details.)

@Snuffleupagus Snuffleupagus closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants