CollapseContent
- class great_expectations.render.CollapseContent(collapse: Union[great_expectations.render.components.RenderedContent, list], collapse_toggle_link: Optional[Union[great_expectations.render.components.RenderedContent, dict]] = None, header: Optional[Union[great_expectations.render.components.RenderedContent, dict]] = None, subheader: Optional[Union[great_expectations.render.components.RenderedContent, dict]] = None, styling: Optional[dict] = None, content_block_type: str = 'collapse', inline_link: bool = False)#
-
CollapseContent is RenderedComponentContent that can be collapsed.
- Parameters
-
-
collapse – The content to be collapsed. If a list is provided, it can recursively contain RenderedContent.
-
collpase_toggle_link – The toggle link for this CollapseContent.
-
header – The header for this content block.
-
subheader – The subheader for this content block.
-
styling – A dictionary containing styling information.
-
content_block_type – The type of content block.
-
inline_link – Whether to include a link inline.
-
- to_json_dict() dict[str, JSONValues] #
-
Returns a JSON-serializable dict representation of this CollapseContent.
- Returns
-
A JSON-serializable dict representation of this CollapseContent.