fastlife.adapters.jinjax.widgets.union
¶
Widget for field of type Union.
Module Contents¶
Classes¶
Widget for union types. |
API¶
- class fastlife.adapters.jinjax.widgets.union.UnionWidget¶
Bases:
fastlife.adapters.jinjax.widgets.base.Widget
[fastlife.adapters.jinjax.widgets.base.TWidget
]Widget for union types.
- build_types(route_prefix: str) collections.abc.Sequence[fastlife.adapters.jinjax.widgets.base.TypeWrapper] ¶
Wrap types in the union in order to get the in their own widgets.
- to_html(renderer: fastlife.service.templates.AbstractTemplateRenderer) markupsafe.Markup ¶
Return the html version.