angular / angular/components

mat-select - Allow mat-option selected property to be settable

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

説明

#### Bug, feature request, or proposal:
Feature request

#### What is the expected behavior?
To be able to set the mat-option selected property

#### What is the current behavior?
Currently the mat-option selected property is readonly and you have to programatically select options.

#### What is the use-case or motivation for changing an existing behavior?
Being able to bind to the selected property would be a cleaner implementation for a user versus having to do it manually, especially in cases where using cascading mat-select with multiple=true (harder to manage)

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.4.3
Material 2.0.0-beta.11
Windows 10
TypeScript - 2.5.2
All browsers

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

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

調査の方向性

まず mat-select と mat-option の実装を読み、readonly selected プロパティが現在どのように管理されているかを理解します。multiple=true を使用する連鎖した mat-select のケースを含め、mat-option に意図されている binding の動作を確認します。selected を要求どおりに設定またはバインドでき、既存の選択動作を壊さなければ完了です。

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

評価

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

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

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