Problem/Motivation

When the field is empty, the widget displays a table without body rows, just a header with nothing below, and the "empty" message. This could be considered as non optimal UI.

Steps to reproduce

Open any entity form that uses this widget, and the field has empty value.

Proposed resolution

I propose a configuration setting that, if enabled, will hide the table and only show the button(s) and the "empty" message.

Remaining tasks

-

User interface changes

When the field is empty, instead of a table with empty body there will just be a markup message.

API changes

-

Data model changes

-

CommentFileSizeAuthor
#2 hide-empty-table--3244620--2.patch1.57 KBefpapado
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

efpapado created an issue. See original summary.

efpapado’s picture

Status: Active » Needs review
StatusFileSize
new1.57 KB

Proposing patch that applies to the 8.x-1.2 tag.

jeroent’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

Patch no longer applies.

smustgrave’s picture

Version: 8.x-1.2 » 2.0.x-dev

Will need test coverage

smustgrave’s picture

Status: Needs work » Fixed
Issue tags: -Needs reroll

Take it back, this really is just a quality of life improvement. Did have to re-roll for 2.0.x

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.