Skip to content

Table with dynamic number of rows #1

Open
@olivercoad

Description

@olivercoad

How do you add rows from a list? All the examples I can find have hard-coded rows.

I tried using a for-in loop but get the error `This control construct may only be used if the computation expression builder defines a 'For' method.

table {
  columns_text [| "test" |]
  for row in testRows do
    row_text [| row |]
}

Workaround is to make the table then use the C#-style .AddRow(row) method.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions