Skip to content

Sheet API - rows and cells #6

@knownasilya

Description

@knownasilya

Would be nice to have an API like:

wb.createSheet('Abutters', options) // default styles and other options
  .row(options) // default options for row, cells inherit these options unless overwritten
    .cell(value, options) 
    .cell(value, options)
  .row() // 1 empty row
  .rowOffset(2) // 2 empty rows
  .row(value, options) // merged
    .cellOffset(5) // 5 empty cells
    .cell(value)
  .row(options)
    .cells([1, 2, 3]) // 3 cells with values only, work well with default row options
  .finalize();

Or something similar. This could make it open to things like currencyCell(value, format) or other cell types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions