Elixlsx.Workbook (elixlsx v0.6.0) View Source

Root structure for excel files.

Must contain at least one Elixlsx.Sheet object.

The datetime property can optionally be set to override the "created at" date. It defaults to the current time.

Link to this section Summary

Functions

Append a sheet at the end.

Insert a sheet at a given position, starting at 0.

Link to this section Types

Specs

t() :: %Elixlsx.Workbook{
  datetime: String.t() | integer() | nil,
  sheets: [Elixlsx.Sheet.t(), ...]
}

Link to this section Functions

Link to this function

append_sheet(workbook, sheet)

View Source

Specs

append_sheet(t(), Elixlsx.Sheet.t()) :: t()

Append a sheet at the end.

Link to this function

insert_sheet(workbook, sheet, at \\ 0)

View Source

Specs

insert_sheet(t(), Elixlsx.Sheet.t(), non_neg_integer()) :: t()

Insert a sheet at a given position, starting at 0.