angular / angular/components

Add 3 state option to multiple select

Offen
#11,047 2 Kommentare 8 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: material/select feature P4
Vorherrschende Sprache
TypeScript
Sterne
25k
Forks
6.8k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
91

Beschreibung

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

#### What is the expected behavior?
Be able to use `Intermediate` inside `mat-option` like you currently can inside `mat-checkbox`

checkbox with the Intermediate set to true:
![image](https://user-images.githubusercontent.com/20732674/39365105-3477c3c2-49fe-11e8-8224-184864206ef3.png)

multiple select
![image](https://user-images.githubusercontent.com/20732674/39365230-8c06f8a6-49fe-11e8-8525-1a4847fa2297.png)

#### What is the current behavior?
The multiple select can only support 2 states.

#### What is the use-case or motivation for changing an existing behaviour?
I want to provide the use a multi select with options for filtering another check box list. If option one is checked in the multi select all corresponding items from the checkbox list should be checked. If the user then unchecks one of those items the multi select should be updated to the intermediate state.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne bei den Angular Material-Einstiegspunkten mat-select und mat-option und vergleiche anschließend deren aktuelles Verhalten mit zwei Zuständen mit der im Issue erwähnten mat-checkbox-Option Intermediate. Die Arbeit ist abgeschlossen, wenn Optionen für Mehrfachauswahl einen Intermediate-Zustand unterstützen und der Zustand aktualisiert wird, wenn sich die entsprechenden Auswahlen ändern.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
frontend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.