angular / angular/components

[Table] Add inline editing for inputs

オープン
#5,982 コメント 34 件 リアクション 189 件 担当者 0 名 GitHub で見る
area: material/table feature P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

#### Bug, 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](https://material.io/guidelines/components/data-tables.html#data-tables-interaction), 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.

cc @andrewseguin @jelbourn

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、要求されたインタラクションとリンク先の Material のデータテーブル仕様を確認します。関連するテーブルと入力のエントリーポイントを特定する前に、アクセシビリティの方針を決めてください。完了の条件は、テキストフィールドで編集ダイアログが開き、Enter で新しい値を保存してダイアログを閉じ、インタラクションにアクセシビリティが確保されていることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。