feat(mat-selection-list): add slide toggle as alternative for checkbox
- 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?
Option lists can have slide toggles instead of checkboxes, as you can see on Android OS.
#### What is the current behavior?
Option lists are only for checkboxes and if you want to create something that has the same look but has a slide toggle instead, you will have to implement by yourself.
#### What is the use-case or motivation for changing an existing behavior?
Its a very common option list format, very used on Android 5~6.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material 5.1
#### Is there anything else we should know?
You can find it in Material's guidelines:

*(switches are very cute btw)*
Cute sidebar example:

*(inspired by Twitter's PWA, achieved with slide-toggle, mat-list and `::ng-deep`, that's a lot more than I expect to write)*
Beitragsleitfaden
Rechercherichtung
Beginne damit, die Komponenten mat-selection-list und slide-toggle sowie die Art und Weise zu überprüfen, wie das aktuelle Checkbox-Verhalten von option-list bereitgestellt wird. Die Arbeit ist abgeschlossen, wenn Optionslisten slide toggles als alternative Darstellung unterstützen und dabei das erwartete Auswahlverhalten beibehalten, mit Abdeckung für die neue Option.
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
- 35/100