Class DashboardDivBuilder

java.lang.Object
com.onec.ui.divkit.DashboardDivBuilder

public final class DashboardDivBuilder extends Object
Builds the home/dashboard content div: a greeting header and the widget area. Each widget compiles per Widgets — a native card for count/ metric, a div-custom block for chart/calendar/ kanban/list (and any app-registered type) that the client renders with a real component.
  • Method Details

    • build

      public static Map<String,Object> build(String title, String greeting, List<DashboardWidgetDescriptor> widgets, int columns, Function<DashboardWidgetDescriptor,String> values, Palette p)
    • empty

      public static Map<String,Object> empty()
      The neutral landing for an app with no dashboard — no authored Page at "/" and no (readable) widgets. Deliberately blank: no "Dashboard" title, greeting, or "Nothing here yet" card, so a dashboard-less app never opens onto a phantom dashboard. The client lands the user on the first real nav item instead (see DivKitController#shell "home"); this surface only shows when the app exposes nothing at all.