Skip to content

Commit

Permalink
ESL-137 update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
oksidgy committed Sep 22, 2023
1 parent 156586a commit 18a2993
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions dedoc/data_structures/cell_with_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@


class CellWithMeta:
"""
This class holds the information about the cell information: text of the cell, text annotations and cell properties (rowspan, colspan, invisible).
"""
def __init__(self, lines: List[LineWithMeta], colspan: int = 1, rowspan: int = 1, invisible: bool = False) -> None:
"""
:param lines: text lines (LineWithMeta) of the cell
:param colspan: The value of the rowspan attribute represents the number of columns to span. Like HTML format.
:param rowspan: The value of the rowspan attribute represents the number of rows to span. Like HTML format.
:param invisible: Display or hide cell values
"""
self.lines = lines
self.colspan = colspan
self.rowspan = rowspan
Expand Down
3 changes: 2 additions & 1 deletion docs/source/modules/data_structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ Main classes defining a document
:exclude-members: to_dict
:members:

.. autoclass:: dedoc.data_structures.CellProperty
.. autoclass:: dedoc.data_structures.CellWithMeta
:show-inheritance:
:special-members: __init__
:exclude-members: to_dict
:members:


Helper classes
--------------

Expand Down

0 comments on commit 18a2993

Please sign in to comment.