Skip to main content
Version: 0.18.21

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, typing.Union[typing.Dict[str, typing.Union[typing.Dict[str, ForwardRef('JSONValues')], typing.List[ForwardRef('JSONValues')], str, int, float, bool, NoneType]], typing.List[typing.Union[typing.Dict[str, ForwardRef('JSONValues')], typing.List[ForwardRef('JSONValues')], str, int, float, bool, NoneType]], str, int, float, bool, NoneType]]#

Returns a JSON-serializable dict representation of this CollapseContent.

Returns

A JSON-serializable dict representation of this CollapseContent.