Collapse

class awe.view.Collapse[source]
new_panel(header=None, active=False, **kwargs)[source]

Add a panel child.

Parameters:
  • header – If supplied, should be the text to display as the panel header. Otherwise, the returned panel element will expose a header field. This field should be used to create an element hierarchy (similar to Page) that will be passed as a ReactNode to the underlying ant design react Panel component.
  • active – Should this panel be collapsed or expanded by default. (default: False)
Returns:

The created panel element.