angular / angular/components

[Table] Remove requirement for a header or data row template

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

説明

It's valid that tables may not want any header, or a table could *only* be a header. Support this use case by letting users avoid defining a `cdk-header-row` or `cdk-row` which means that they should not be inserted.

Motivation: A table footer row could be a single row composed of a single row without a header. If placed after a preceding table, it acts as a sticky footer. Works well for cases where the header should not affect the rows, e.g. a totals row

Note that this doesn't help in cases where a scrollbar appears on one container but not the other. This will cause misalignment on browsers that push content left to show a scrollbar rather than overlay it (e.g. safari)

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

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

調査の方向性

まず、Angular CDK のテーブル実装とテストを検索して、`cdk-header-row` と `cdk-row` のテンプレート処理を確認します。ヘッダーのないテーブル、データ行テンプレートのないテーブル、ヘッダーのみのテーブルでの動作を検証します。省略されたテンプレートが挿入されず、サポートされている行は引き続きレンダリングされれば完了です。

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

評価

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

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

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