Skip to content

Bring sizing down to the Cell level #5

@Astrac

Description

@Astrac

The behaviour of providing a list of weights that is not of the same cardinality as the rows being rendered is currently unspecified (likely to crash). This should be fixed by either making it impossible to create this situation or by introducing error effects in the algebra (i.e. return an Either when building a table).

It should be possible to bring down Sizing to the individual Cell level so that:

  • There is no need for aligning Lists in terms of their size making the algebra safer
  • It is possible to mix different strategies in a table (e.g. saying that a certain column should be fixed and another one weighted)

This involves splitting the current concept of Sizing in an overall table size (e.g. defined in TableConfig) and individual column sizing strategies defined at the level of a Cell.

An example of this happening at the level of Formatter can be seen in 21e8a0b

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions