Package com.onec.ui.divkit
Class DashboardDivBuilder
java.lang.Object
com.onec.ui.divkit.DashboardDivBuilder
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 Summary
Modifier and TypeMethodDescriptionbuild(String title, String greeting, List<DashboardWidgetDescriptor> widgets, int columns, Function<DashboardWidgetDescriptor, String> values, Palette p) empty()The neutral landing for an app with no dashboard — no authoredPageat"/"and no (readable) widgets.
-
Method Details
-
build
-
empty
The neutral landing for an app with no dashboard — no authoredPageat"/"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 (seeDivKitController#shell"home"); this surface only shows when the app exposes nothing at all.
-