Skip to main content

TableCellNode

ClassDataClassSource

TableCellNode(
children: list[DeletedNode | TextNode | LineBreakNode | HorizontalRuleNode | InlineCodeNode | CodeBlockNode | BoldNode | ItalicNode | UnderlineNode | StrikeNode | SpoilerNode | LinkNode | HeadingNode | ParagraphNode | QuoteNode | AlertNode | ListItemNode | ListNode | TableCellNode | TableRowNode | TableNode],
type: Literal["table_cell"] = "table_cell",
header: bool
)

Node: Table Cell

Provide the table cells.

header = True for <th>, False for <td>.

Fields​

NameTypeRequired
Description
childrenlist[DeletedNode | TextNode | LineBreakNode | HorizontalRuleNode | InlineCodeNode | CodeBlockNode | BoldNode | ItalicNode | UnderlineNode | StrikeNode | SpoilerNode | LinkNode | HeadingNode | ParagraphNode | QuoteNode | AlertNode | ListItemNode | ListNode | TableCellNode | TableRowNode | TableNode]The children of the node.
typeLiteral["table_cell"]The type identifer of this document node.
headerboolA flag. If specified, this cell will be treated as a header cell.