XLSXComposer.Section (xlsx_composer v0.2.0)
View SourceElixir.XLSXComposer.Section allows to group cells into units that we can reason and test on that level.
WARNING! : limit number of Sections otherwise the process of the checks might hurt your performance! Soon, implementation of checking of Sections overlap will have to be done so use Section carefully.
Summary
Functions
Find a point just below the area of the section. It should be used to ensure the sections are below each other. It allows opts
Find a point just to the right to the area of the section. It should be used to ensure the sections are by each other. It allows opts
Types
@type area_t() :: {XLSXComposer.ExcelCoords.t(), XLSXComposer.ExcelCoords.t()}
@type name_t() :: String.t()
@type new_attrs() :: %{ name: name_t(), top_left: XLSXComposer.ExcelCoords.t(), cells: XLSXComposer.CellDef.section_cells() }
@type t() :: %XLSXComposer.Section{ bottom_right: XLSXComposer.ExcelCoords.t(), cells: XLSXComposer.CellDef.section_cells(), name: name_t(), top_left: XLSXComposer.ExcelCoords.t() }
Functions
Find a point just below the area of the section. It should be used to ensure the sections are below each other. It allows opts:
- move_x: integer(), default: 0
- move_y: non_neg_integer(), default: 0
TL - top left BR - bottom right TB - target below
A1 | A2 | A3 | A4 | A5 |
B1 | TL | B3 | B4 | B5 |
C1 | C2 | C3 | C4 | C5 |
D1 | D2 | D3 | BR | D5 |
E1 | TB | E3 | E4 | E5 |
Find a point just to the right to the area of the section. It should be used to ensure the sections are by each other. It allows opts:
- move_x: non_neg_integer(), default: 0
- move_y: integer(), default: 0
TL - top left BR - bottom right TR - target right
A1 | A2 | A3 | A4 | A5 |
B1 | TL | B3 | B4 | TR |
C1 | C2 | C3 | C4 | C5 |
D1 | D2 | D3 | BR | D5 |
E1 | E2 | E3 | E4 | E5 |
@spec reduce_to_excel_cells([t()]) :: XLSXComposer.CellDef.excel_cells()
@spec to_excel_cells(t()) :: XLSXComposer.CellDef.excel_cells()