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
-
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | hide-empty-table--3244620--2.patch | 1.57 KB | efpapado |
Issue fork entity_browser_table-3244620
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
Comment #2
efpapado commentedProposing patch that applies to the 8.x-1.2 tag.
Comment #3
jeroentPatch no longer applies.
Comment #4
smustgrave commentedWill need test coverage
Comment #7
smustgrave commentedTake it back, this really is just a quality of life improvement. Did have to re-roll for 2.0.x