Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table field improvements #13231

Merged

Conversation

brandonkelly
Copy link
Member

Description

Makes the following enhancements to Table fields:

  • New “Row heading” column type, which will result in <th scope="row"> cells with non-editable values. Heading cell values can be defined via the Default Values setting. Changes made to the heading cell values will be immediately reflected across all elements, old and new.
  • New “Static Rows” field setting, which can be enabled to prevent adding/removing/reordering table rows. When this is enabled, the “Min Rows”, “Max Rows”, and “Add Row Label” settings will be hidden.
  • Tables that don’t have any column heading values no longer include a header row.

Together these can be combined to create a key-value pair table such as the following:

A Table field labelled “Dimensions”, which has no header row, and three columns: a header column with “Width”, “Height”, and “Length” values, a text column, and a dropdown column with “inches” and “feet” options.

Related issues

- “Row heading” column type
- “Static Rows” setting
- stop showing header row if all headings are blank

Resolves #9028
@brandonkelly brandonkelly requested a review from a team as a code owner May 23, 2023 12:17
@linear
Copy link

linear bot commented May 23, 2023

@brandonkelly brandonkelly merged commit 881989e into 4.5 May 23, 2023
@brandonkelly brandonkelly deleted the feature/dev-1133-row-heading-column-type-for-table-fields branch May 23, 2023 12:17
brandonkelly added a commit that referenced this pull request May 23, 2023
@timkelty timkelty mentioned this pull request Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant