Skip to content

textfile

TextFile

Display the content of a text file.

PARAMETER DESCRIPTION
title

if not set or null defaults to file path

TYPE: str DEFAULT: None

path

Full path to file to be printed

TYPE: str

ansi

Enables "ANSI" escaped text support (emoji codes are not supported in this mode, only Unicode)

TYPE: bool DEFAULT: False

align

Text alignment, "start" and "end" will support RTL layouts in the future.

TYPE: Literal['start', 'left', 'center', 'end', 'right', 'justify'] DEFAULT: 'start'

opacity

Opacity of the text (0 to 1 o 0% to 100%)

TYPE: float | str DEFAULT: 1.0

overflow

Text overflow mode

TYPE: Literal['clip', 'fold', 'ellipsis'] DEFAULT: 'fold'

wrap

Enable word wrapping

TYPE: bool DEFAULT: True

style

Base style for text

TYPE: str DEFAULT: 'none'

**kwargs

TYPE: Any DEFAULT: {}