Class SearchSection

java.lang.Object
org.apache.juneau.console.freemarker.Section
org.apache.juneau.console.freemarker.SearchSection

public final class SearchSection extends Section
A rail section with one text input.

Publishes {schemaVersion:1, viewId, search} on Enter and after a 250 ms pause in typing.

Example:

SearchSection.create().placeholder("status:open").publishes(Topics.filter("search"));

Since:
10.0.0
  • Method Details

    • create

      public static SearchSection create()
      Returns:
      A new section.
    • placeholder

      Sets the input's placeholder text.
      Parameters:
      value - The placeholder.
      Returns:
      This object.
    • publishes

      public SearchSection publishes(String topic)
      Description copied from class: Section
      Sets the topic this section owns.
      Overrides:
      publishes in class Section
      Parameters:
      topic - A filter:<key> topic, normally Topics.filter(key). <key> becomes the section id.
      Returns:
      This object.
    • label

      public SearchSection label(String label)
      Description copied from class: Section
      Sets the section's legend text.
      Overrides:
      label in class Section
      Parameters:
      label - The label.
      Returns:
      This object.