Class PopoverField

java.lang.Object
org.apache.juneau.console.views.PopoverField

@BeanType(properties="data,title,render") public class PopoverField extends Object
One labelled value in a CellPopover, bound to a top-level row-data key.

Optional render is restricted to the text-shaped built-ins (date, bool, decimal, datetime, ts-zulu). HTML-shaped renderers are rejected at CellPopover.validate().

Since:
10.0.0
  • Field Details

    • data

      public String data
      The key into the DataTables row. Must not be dotted.
    • title

      public String title
      Optional label shown beside the value.
    • render

      public Render render
      Optional text-shaped renderer. null paints String(value) via textContent.
  • Constructor Details

  • Method Details

    • of

      public static PopoverField of(String data)
      Creates a field bound to the specified row-data key.
      Parameters:
      data - The row key. Must not be null or blank.
      Returns:
      A new PopoverField.
    • title

      public PopoverField title(String value)
      Sets the label shown beside the value.
      Parameters:
      value - The label. Can be null.
      Returns:
      This object.
    • render

      public PopoverField render(String value)
      Sets the named renderer using the "id:field" string sugar (see Render.parse(String)).
      Parameters:
      value - The render-id string. Must not be null or blank.
      Returns:
      This object.
    • render

      public PopoverField render(Render value)
      Sets the named renderer to a pre-built Render.
      Parameters:
      value - The renderer reference. Can be null to unset.
      Returns:
      This object.