angular / angular/components

Treegrid in 18.2

オープン
#29,613 コメント 15 件 リアクション 4 件 担当者 0 名 GitHub で見る
area: cdk/tree P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

Hello,

Since 18.2, `FlatTreeControl`, `MatTreeFlatDataSource` and `MatTreeFlattener` are deprecated, and I was relying on them to create a treegrid, as suggested by @andrewseguin in https://github.com/angular/components/issues/15187#issuecomment-463715842:

> You should be able to do this using the table currently, and to make it easier you can use the `TreeControl` to help you traverse your data and manage expansion state
> https://stackblitz.com/edit/angular-m77g7e-semvxp?file=app%2Ftable-basic-example.html

So I was wondering if there was a new recommended way of creating a treegrid, or if I needed to reimplement those deprecated classes. 🤔

Thanks for your help!

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

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

調査の方向性

FlatTreeControl、MatTreeFlatDataSource、MatTreeFlattener の非推奨化の背景と、issue #15187 からリンクされている treegrid の例を確認してください。Angular Material にサポートされている代替手段があるかを確認するか、推奨される treegrid の方法を文書化してください。完了の条件は、サポートされているアプローチが明確になることです。

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

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
ドキュメント
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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