ui.fill.as_fillable_container
ui.fill.as_fillable_container(tag)
Coerce a tag to a fillable container.
Filling layouts are built on the foundation of fillable containers and fill items (fill carriers are both fillable containers and fill items). This is why most UI components (e.g., card, layout_sidebar) possess both fillable
and fill
arguments (to control their fill behavior). However, sometimes it's useful to add, remove, and/or test fillable/fill properties on arbitrary Tag, which these functions are designed to do.
Parameters
tag :
TagT
-
a Tag object.
Returns
:
TagT
-
A copy of the original Tag object (
tag
) with additional attributes (and an HTMLDependency).
See Also
Examples
Loading...