[Table] Add inline editing for inputs
See original GitHub issueBug, feature request, or proposal:
Feature request
What is the expected behavior?
Clicking on a text field should launch a simple edit dialog with an md-input
. Hitting Enter would then close the dialog and save the input as the new value for the text field.
What is the use-case or motivation for changing an existing behavior?
This behavior is described in the Data Table section of the Material spec, found here, and would be useful to have as its own component.
Is there anything else we should know?
Accessibility is a real concern here, and there doesn’t seem to be much discussion/affordance defined in the spec for possible solutions. The text field itself could be defined as a button with aria-role="button"
, but that may be deceptive.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:175
- Comments:34 (5 by maintainers)
Top Results From Across the Web
DataTables example - Simple inline editing
First name Last name Position Office Start date Salary
Airi Satou Accountant Tokyo 2008‑11‑28 $162,700
Angelica Ramos Chief Executive Officer (CEO) London 2009‑10‑09 $1,200,000
Ashton Cox...
Read more >Inline edit - Examples - Components - Atlassian Design System
Inline edit is a wrapper around a custom input component such as a text field. It starts in a read-only view called readView...
Read more >Inline Editing and Validation in Tables - Medium
This article describes a few ways of displaying input validation messages when users are performing inline editing of table content.
Read more >Inline edit (similar to cells in Editable Table) - OutSystems
I'm trying to get to the underlying controls for the Editable Table. The Editable Table displays information in an Expression, and when clicking...
Read more >Inline Editing - Appsmith
Allow adding a row · Users are able to click a button on the table to create a new row of data. Users...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is a demo of a workaround closer to the spec:
https://stackblitz.com/edit/material2-beta12-es19ub?file=app%2Fapp.component.html
It does require a 3rd party component, but it might inspire a good temporary solution until an official one is developed.
@andrewseguin Any update on this old thread?