Class Section.Custom

java.lang.Object
org.apache.juneau.console.freemarker.Section
org.apache.juneau.console.freemarker.Section.Custom
Enclosing class:
Section

public static final class Section.Custom extends Section
A section implemented in JS.
Example:

Section.custom("app.goto", JsonMap.of()).publishes(Topics.filter("goto"));

Since:
10.0.0
  • Method Details

    • publishes

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