Skip to main content
Version: 0.18.17

RenderedTableContent

class great_expectations.render.RenderedTableContent(table: list[great_expectations.render.components.RenderedContent], header: Optional[Union[great_expectations.render.components.RenderedContent, dict]] = None, subheader: Optional[Union[great_expectations.render.components.RenderedContent, dict]] = None, header_row: Optional[list[great_expectations.render.components.RenderedContent]] = None, styling: Optional[dict] = None, content_block_type: str = 'table', table_options: Optional[dict] = None, header_row_options: Optional[dict] = None)#

RenderedTableContent is RenderedComponentContent that is a table.

Parameters
  • table – The table to be rendered.

  • header – The header for this content block.

  • subheader – The subheader for this content block.

  • header_row – The header row for the table.

  • styling – A dictionary containing styling information.

  • content_block_type – The type of content block.

  • table_options – The options that can be set for the table.

  • search: A boolean indicating whether to include search with the table.

    icon-size: The size of the icons in the table. One of “sm”, “md”, or “lg”.

  • header_row_options – The options that can be set for the header_row. A dictionary with the keys being the column name and the values being a dictionary with the following form: sortable: A boolean indicating whether the column is sortable.

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 RenderedTableContent.

Returns

A JSON-serializable dict representation of this RenderedTableContent.