[New Component] TreeView
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 8/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp
調査の方向性
This is a new component, not a fix, and the payload has no existing code to start from. Read the related issue #1065 and the draft API, then look at how existing components are laid out under blazorbootstrap/Components/. Done would require a first slice of the v1 list (for example basic data binding and expand/collapse) with XML docs and a demo page, agreed with the maintainers before coding.
索引モデルが issue の本文から書いたものです。
説明
Summary
Add a data-bound TreeView<TItem> component for hierarchical data with lazy loading, selection (including tri-state checkboxes), search, and full keyboard support.
Motivation
TreeView is requested across the Blazor UI ecosystem and in this repository as a hierarchical list (#1065). Common uses: folder browsers, category pickers, organization charts, and permission editors.
Proposed API (draft)
<TreeView TItem="Folder"
Data="rootFolders"
TextField="f => f.Name"
ChildrenSelector="f => f.SubFolders"
HasChildrenSelector="f => f.HasSubFolders"
ChildrenProvider="LoadChildrenAsync"
SelectionMode="TreeViewSelectionMode.Checkbox"
@bind-SelectedItems="selectedFolders"
@bind-ExpandedItems="expandedFolders">
<ItemTemplate Context="folder">
<Icon Name="IconName.Folder" /> @folder.Name
</ItemTemplate>
</TreeView>
Must-have features (v1)
- Data binding:
Data,TextField,ChildrenSelector,HasChildrenSelector,ItemTemplate,IconSelector. - Lazy loading:
ChildrenProvider(async) with per-node loading indicator. - Expand/collapse:
@bind-ExpandedItems,ExpandAllAsync,CollapseAllAsync,OnExpandedChanged. - Selection:
SelectionMode(TreeViewSelectionMode: None, Single, Multiple, Checkbox) with@bind-SelectedItem/@bind-SelectedItems. - Checkbox mode: tri-state parents (checked / unchecked / indeterminate) with up and down propagation; option to disable cascading.
- Disabled nodes (
DisabledSelector);OnNodeClickevent. - Search/filter (
FilterTextor built-in search box) that auto-expands branches containing matches and highlights them. - UI updates when the bound collections change (add, remove, rename nodes).
Accessibility
- WAI-ARIA tree pattern:
role="tree",treeitem,group,aria-expanded,aria-selected/aria-checked,aria-level. - Keyboard: Up/Down, Right (expand / first child), Left (collapse / parent), Home/End, Enter/Space, type-ahead,
*expands siblings. - Roving tabindex (only one node in tab order).
Out of scope (later)
- Drag-and-drop to move or reparent nodes.
- Tree select inside a dropdown.
- Virtualization for very large trees.
Acceptance criteria
- Component in
blazorbootstrap/Components/TreeView/. - XML docs on all public parameters, methods, and events.
- Demo page covering: basic, icons, templates, lazy loading, single, multiple, checkbox tri-state, disabled nodes, expand/collapse all, search, dynamic updates, keyboard navigation.
- Verified in Server and WebAssembly demo hosts.
- Docs page
docs/docs/05-components/tree-view.mdx. - Builds for .NET 8, 9, 10.
Related
#1065
- 主要言語
- HTML
- スター
- 1.2k
- フォーク
- 111
- 平均マージ
- 4分
- マージ済み PR(30日)
- 55
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vikramlearning/blazorbootstrap のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
vikramlearning/blazorbootstrap#1388 ·
メンテナーはふだん 1 日以内に返信
-
NET 11 Supportオープン
難易度 3/5 1〜2日 初心者へのやさしさ 28/100
vikramlearning/blazorbootstrap#1362 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
vikramlearning/blazorbootstrap#1346 ·
メンテナーはふだん 1 日以内に返信
-
Showcase: rich sample websites built with Blazor Bootstrap対応中かも @gvreddy04 が 8 日前に担当しました。 オープン
vikramlearning/blazorbootstrap#1343 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
area-autocomplete area-forms area-multi-select new component
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
vikramlearning/blazorbootstrap#1338 ·
メンテナーはふだん 1 日以内に返信
vikramlearning/blazorbootstrap の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
browser: chrome package: @carbon/react type: bug 🐛
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
carbon-design-system/carbon#24074 ·
メンテナーはふだん 1 日以内に返信
-
bug trading ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
userFRM/egui-charts#3280 ·
メンテナーはふだん 1 日以内に返信
-
Filter sidebar: the "Only" button can't be reached by keyboard, and Tab drops focus to the pageオープンBug Website Accessibility
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ProjectSidewalk/SidewalkWebpage#5999 ·
メンテナーはふだん 1 日以内に返信
-
a11y team Accessibility Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信