Skip to content

Novis\Spreadsheet\Template

A workbook designed in Excel, with placeholders such as {{customer.name}} in its cells. Open one with Template::open. fill puts your data in the placeholders. A row with a list placeholder, such as {{items.qty}}, is written once for each item.

Members

3 members.

MemberSignature
openopen(bytes|Core\IO\File $source, Options $options = null): Template
setset(string $address, mixed $value): Template
fillfill(array<mixed> $data): Export

Types

Options

type Options = ?{ zone?: string };

Value

type Value = { text: string }| { number: float }| { integer: int }| { decimal: string }| { boolean: bool }| { date: Core\Time\Date }| { time: Core\Time\TimeOfDay }| { duration: Core\Time\Duration }| { day: Core\Time\Date, clock: Core\Time\TimeOfDay }| { formula: string, cachedText: ?string, cachedNumber: ?float }| { runs: array<{ text: string, style: ?uint }> };