Skip to content

How to set search text by props? #95

Open

Description

@Thulof

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!

Activity

  1. thatblindgeye commented on May 6, 2025

    @thatblindgeye
    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?

  2. moved this from Needs triage to Needs info in PatternFly Issueson May 6, 2025
  3. Thulof commented on May 7, 2025

    @Thulof
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions