trame.app.klass module

class trame.app.klass.TrameApp(server=None, client_type='vue3', ctx_name=None, **_)

Bases: TrameComponent

Base trame class that has access to a trame server instance on which we provide simple accessor and method decoration capabilities.

class trame.app.klass.TrameComponent(server, ctx_name=None, **_)

Bases: object

Base trame class that has access to a trame server instance on which we provide simple accessor and method decoration capabilities.

property server

Return the associated trame server instance

property state

Return the associated server state

property ctrl

Return the associated server controller

property ctx

Return the associated server context