java.lang.Object
org.apache.juneau.console.freemarker.Rail

public final class Rail extends Object
The rail of a dashboard: a column of Sections beside the panel grid, with a splitter.

The width is a default; the user's dragged width is saved per page. Below 900 px the rail moves above the grid as a collapsible "Filters" disclosure.

Example:

Rail.left().width(280).sections(SearchSection.create().publishes(Topics.filter("search")));

Since:
10.0.0
  • Method Details

    • left

      public static Rail left()
      Returns:
      A rail on the left of the grid.
    • right

      public static Rail right()
      Returns:
      A rail on the right of the grid.
    • width

      public Rail width(int value)
      Sets the default width.
      Parameters:
      value - The width in pixels, 200 to 480. Defaults to 280.
      Returns:
      This object.
    • sections

      public Rail sections(Section... values)
      Appends sections, top to bottom.
      Parameters:
      values - The sections.
      Returns:
      This object.