class trame.widgets.client.JSEval(children=None, **kwargs)

Bases: AbstractElement

Provide means to execute JS code

class trame.widgets.client.Loading(children=None, **kwargs)

Bases: AbstractElement

Three circle spinning with a message


message – Content of the message

class trame.widgets.client.ServerTemplate(children=None, **kwargs)

Bases: AbstractElement

Template content presentation

  • name (str) – Name of the template to display. (default: ‘main’)

  • use_url (bool) – If true, will use the {url_key}= from the url to override the name= attribute.

  • url_key (str) – Name of the key to extract from url for use_url. (default: ‘ui’)

class trame.widgets.client.Style(css_content=None, **kwargs)

Bases: AbstractElement

Provide means to inject global CSS rules


Update style content

property var_name

Name the the state variable used by this widget