Skip to content

How to set search text by props? #95

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

Open
Thulof opened this issue Apr 18, 2025 · 2 comments
Open

How to set search text by props? #95

Thulof opened this issue Apr 18, 2025 · 2 comments

Comments

@Thulof
Copy link

Thulof commented Apr 18, 2025

Hi, I'd like to use my custom search toolbar. I'm wondering how I can set the search text through props.

Thanks a lot!

@thatblindgeye
Copy link
Contributor

It doesn't look like that is currently possible. A couple of contexts for LogViewer rely on some internal state. Is there a particular use-case that the LogViewerSearch doesn't cover that a custom toolbar search is needed?

@thatblindgeye thatblindgeye moved this from Needs triage to Needs info in PatternFly Issues May 6, 2025
@Thulof
Copy link
Author

Thulof commented May 7, 2025

It doesn't look like that is currently possible. A couple of contexts for LogViewer rely on some internal state. Is there a particular use-case that the LogViewerSearch doesn't cover that a custom toolbar search is needed?

@thatblindgeye Thanks for your reply! I'd like to highlight some keywords (e.g., user's nickname) that are not entered via user input, but rather selected to show/hide by the user. Therefore, I want to control the highlighting through component props. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs info
Development

No branches or pull requests

2 participants