angular / angular/components

[Table] Add directive for clickable mat-row

Đang mở
#8,027 8 bình luận 20 reaction 0 người được giao Xem trên GitHub
area: material/table feature needs: discussion P4
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

#### Bug, feature request, or proposal:
It would be great if `mat-row` (part of `mat-table`) supported the `navigation list` feature that can currently be found in lists. I.e., hover on a row highlighted the row, and click on a row added a `ripple`. The cursor should change to `pointer`.

This would be great for tables that are intended to have only one main action.

#### What is the expected behavior?
If `mat-row` has a special directive applied, say, `nav-row`, then hover on a row highlights the row, and click on a row adds a ripple. Also, the cursor should change to `pointer`.

#### What is the current behavior?
No highlights or ripples. The cursor is default.

#### What are the steps to reproduce?
http://plnkr.co/edit/A70Yw5fBc7HLrbDIlivl?p=preview

#### What is the use-case or motivation for changing an existing behavior?
It would be great for use cases when the user needs to select (by clicking) a single row in a `mat-table`

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.4.4
Material 2.0.0-beta.11

#### Is there anything else we should know?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by comparing the existing list navigation behavior with mat-row and mat-table, using the linked Plunker to reproduce the current interaction. Identify the relevant Angular Material component entry points and tests, then verify that an explicitly applied directive provides row highlighting, a click ripple, and a pointer cursor without changing ordinary rows.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.