ComponentGroup

class dasha.web.templates.ComponentGroup(**kwargs)[source]

Bases: dasha.web.templates.ComponentTemplate

This is a base class for managing a set of components as one unit.

The elements in the group is defined in the _component_group class attribute. It is a list of dicts which shall contain the follows:

  • key: The unique key of the component.

  • type: The type of the component. Choose from

    “input”, “states”, “output”, “static”

  • prop: The property name to use for Input, Output, or State.

Attributes Summary

layout

The layout generated from traversing the component tree.

Methods Summary

setup_layout(self, app)

Implement this to declare layout components and their callbacks.

Attributes Documentation

layout

The layout generated from traversing the component tree.

The traversing is depth first.

Note

Properties with callable values are evaluated the time the property is queried.

Methods Documentation

setup_layout(self, app)[source]

Implement this to declare layout components and their callbacks.