Class Section
java.lang.Object
org.apache.juneau.console.freemarker.Section
- Direct Known Subclasses:
CardSection,ChoiceSection,RangeSection,SearchSection,Section.Custom
A section of a dashboard
Rail.
Every section except a CardSection owns one filter:<key> topic, set with publishes(String).
The key is the section's id and its bus owner id. The section publishes a filter-shaped payload
({schemaVersion:1, viewId, search?, columns?, options?}) whenever the user changes it.
Example:
Rail.
- Since:
- 10.0.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Section.CustomCreates a section implemented in JS by aJuneauDashboard.section.register(name, ...)section.Sets the section's legend text.Sets the topic this section owns.
-
Method Details
-
publishes
Sets the topic this section owns.- Parameters:
topic- Afilter:<key>topic, normallyTopics.filter(key).<key>becomes the section id.- Returns:
- This object.
-
label
Sets the section's legend text.- Parameters:
label- The label.- Returns:
- This object.
-
custom
Creates a section implemented in JS by aJuneauDashboard.section.register(name, ...)section.- Parameters:
name- The dotted section name, for exampleapp.goto.args- Arguments handed to the section'smountasctx.args.- Returns:
- A new section.
-