Bases: Parameterized
Values that apply to a whole dashboard rather than to one component.
The editor keeps one instance in FlowDash.settings, fills it from the
loaded dashboard and writes its current values back on save. Subclass it to
add application-specific parameters and pass the subclass as
FlowDash(settings_class=...). Every parameter must hold a JSON
serializable value, since the stores persist settings as JSON.
controls_position = param.Selector(default='top', objects=['top', 'left'], label='Controls position', doc='\n Where the dashboard\'s controls (components registered with\n ``sidebar=True``) go: "top" in a slim row above the tiles, "left" in\n a collapsible panel beside them. Defaults to the editor\'s\n ``controls_position``.')
class-attribute
instance-attribute
description = param.String(default='', label='Description', doc='\n A sentence or two on what the dashboard shows. Empty by default.')
class-attribute
instance-attribute
node_previews = param.Boolean(default=False, label='Preview values on the canvas', doc="\n Whether each card on the wiring canvas previews its component's\n current value below its ports: the first rows of a table, a sparkline\n of numbers, a few items of a list. Without it a card summarizes the\n value in one line. Defaults to the editor's ``node_previews``.")
class-attribute
instance-attribute
refresh_period = param.Number(default=0.0, bounds=(0, 86400), step=1, label='Refresh period (s)', doc='\n Seconds between automatic refreshes of the dashboard, which the editor\n announces by triggering its ``refresh`` event. 0 turns automatic\n refreshing off.')
class-attribute
instance-attribute
tile_cards = param.Boolean(default=True, label='Show tiles as cards', doc="\n Whether each tile is drawn as a framed card with a bar for its status\n and actions. Without the card the tile renders as the component's own\n view, and its actions appear over its top-right corner on hover or\n keyboard focus.")
class-attribute
instance-attribute
tile_titles = param.Boolean(default=False, label='Show tile titles', doc="\n Whether a card's bar also shows the tile's title and the component's\n description. Off by default, since most components show their own\n heading. Only applies while ``tile_cards`` is on.")
class-attribute
instance-attribute
viewers_can_inspect = param.Boolean(default=False, label='Viewers can inspect outputs', doc='\n Whether people who may only view the dashboard get the inspect button\n on its tiles, when the editor has ``inspect_outputs`` on. Editors and\n administrators always get it. Leave it off when an output carries\n data a tile deliberately hides.')
class-attribute
instance-attribute