mirror of https://github.com/Textualize/rich.git
highlight column
This commit is contained in:
parent
927d06669d
commit
dcbe0ec6bb
|
@ -106,6 +106,9 @@ class Column:
|
||||||
no_wrap: bool = False
|
no_wrap: bool = False
|
||||||
"""bool: Prevent wrapping of text within the column. Defaults to ``False``."""
|
"""bool: Prevent wrapping of text within the column. Defaults to ``False``."""
|
||||||
|
|
||||||
|
highlight: bool = False
|
||||||
|
"""bool: Apply highlighter to column. Defaults to ``False``."""
|
||||||
|
|
||||||
_index: int = 0
|
_index: int = 0
|
||||||
"""Index of column."""
|
"""Index of column."""
|
||||||
|
|
||||||
|
@ -821,6 +824,7 @@ class Table(JupyterMixin):
|
||||||
no_wrap=column.no_wrap,
|
no_wrap=column.no_wrap,
|
||||||
overflow=column.overflow,
|
overflow=column.overflow,
|
||||||
height=None,
|
height=None,
|
||||||
|
highlight=column.highlight,
|
||||||
)
|
)
|
||||||
lines = console.render_lines(
|
lines = console.render_lines(
|
||||||
cell.renderable,
|
cell.renderable,
|
||||||
|
|
Loading…
Reference in New Issue