WrapperComponent
Extends the base component interface to allow for the
construction of interesting compound interfaces (using JHTML.Compound
).
Takes a dict
of wrappers
naming the successive levels of the interface
along with a theme
that provides style declarations for each level.
Used primarily to create Bootstrap
-based interfaces.
wrappers: dict
theme: dict
__init__(self, items: Union[str, Mapping, McUtils.Jupyter.Apps.types.HTMLableType, McUtils.Jupyter.Apps.types.WidgetableType, Tuple[Union[str, Mapping, McUtils.Jupyter.Apps.types.HTMLableType, McUtils.Jupyter.Apps.types.WidgetableType], Mapping], NoneType, Iterable[Union[str, Mapping, McUtils.Jupyter.Apps.types.HTMLableType, McUtils.Jupyter.Apps.types.WidgetableType, Tuple[Union[str, Mapping, McUtils.Jupyter.Apps.types.HTMLableType, McUtils.Jupyter.Apps.types.WidgetableType], Mapping]]]], wrappers=None, theme=None, extend_base_theme=True, **attrs):
handle_variants(self, theme):
manage_theme(self, theme, extend_base_theme=True):
merge_themes(theme: 'None|dict', attrs: dict, merge_keys=('cls',)):
Needs to handle cases where a theme
is provided
which includes things like cls
declarations and then the
attrs
may also include cls
declarations and the attrs
declarations get appended to the theme
manage_items(items, attrs):
get_child(self, key):
set_child(self, which, new):
insert_child(self, where, child):
wrap_items(self, items):
to_jhtml(self, parent=None):