ComponentRoot

class dasha.web.templates.ComponentRoot(id)[source]

Bases: dasha.web.templates.Template

A class that serves as a virtual root component.

This is useful to define dynamic layout within callbacks.

Attributes Summary

id

The unique id.

idbase

The base name of the generated id.

layout

Implement this to return a valid Dash layout object.

Methods Summary

setup_layout(self, app)

Implement this to declare layout components and their callbacks.

Attributes Documentation

id

The unique id.

idbase

The base name of the generated id.

layout

Implement this to return a valid Dash layout object.

Methods Documentation

setup_layout(self, app)[source]

Implement this to declare layout components and their callbacks.