Token导航 LogoToken导航

Agent Skill · 研究检索

syncfusion-blazor-treeview(同步融合 Blazor 树视图)

syncfusion-blazor-treeview 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

syncfusion-blazor-treeview 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 43,484。

总安装 979周安装 40GitHub Stars 公开资料未说明下载 317核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-blazor-treeview(同步融合 Blazor 树视图)
来源仓库:https://github.com/syncfusion/blazor-ui-components-skills
仓库路径:skills/syncfusion-blazor-treeview
安装命令:
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-treeview
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusion-blazor-treeview

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

为 Blazor 应用提供 Syncfusion TreeView 组件的详细集成指导。适合构建交互式 Web 前端中的层级导航与数据组织结构。涵盖模板定制、事件绑定与性能优化等关键开发要点。必须获得有效商业授权才能用于盈利性产品部署。

syncfusion-blazor-treeview 属于研究检索类 Skill,可作为该场景下的辅助能力补充。可通过 npm 包管理器快速添加所需依赖文件。

来源仓库内路径:skills/syncfusion-blazor-treeview

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

syncfusion-blazor-treeview 怎么安装?

在终端执行 npx skills add https://github.com/syncfusion/blazor-ui-components-skills --skill syncfusio…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

syncfusion-blazor-treeview 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

syncfusion-blazor-treeview 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

syncfusion-blazor-treeview 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

syncfusion-blazor-treeview 用的人多吗?

公开数据是累计安装 979 次,近一周安装 40 次,下载 317 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

syncfusion-blazor-treeview 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
syncfusion-blazor-treeview

同步融合 Blazor 树视图 · 本页

979—需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Implementing Syncfusion Blazor TreeView Component

The Blazor TreeView component displays hierarchical data in an expandable/collapsible tree structure. It supports local and remote data binding, single and multi-selection, editing, checkboxes, drag-drop reordering, virtualization for large datasets, filtering, and comprehensive event handling.


📋 Table of Contents

  1. When to Use
  2. Installation & Setup
  3. Quick Start
  4. Key Properties
  5. Key Methods
  6. Key Events
  7. Common Patterns
  8. Complete Reference Navigation

When to Use This Skill

Use the TreeView component when you need to:

  • Display hierarchical data in a tree structure with expandable/collapsible nodes
  • Single selection: Allow users to select one node from the tree
  • Multi-selection: Enable selection of multiple tree nodes using Ctrl+Click and Shift+Click
  • Checkbox selection: Provide checkbox-based multi-selection with automatic parent-child state management
  • Edit nodes: Allow inline renaming or editing of node text
  • Drag and drop: Enable reordering nodes within the hierarchy
  • Filter and search: Implement search functionality to find nodes
  • Remote data sources: Bind to Web APIs, OData services, or custom endpoints
  • Handle events: Respond to expand, collapse, select, edit, and drag-drop actions
  • Virtualization: Display large datasets (1000+ nodes) with smooth scrolling
  • Custom styling: Apply icons, colors, and templates for nodes

Installation & Setup

Install Syncfusion NuGet packages and configure your Blazor project:

// 1. Install NuGet packages
// Install-Package Syncfusion.Blazor.Navigations -Version 26.1.35
// Install-Package Syncfusion.Blazor.Themes -Version 26.1.35

// 2. Add to _Imports.razor
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Navigations

// 3. Register service in Program.cs
builder.Services.AddSyncfusionBlazor();

// 4. Add CSS theme to Index.html or _Layout.cshtml
<link href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />

Quick Start

@using Syncfusion.Blazor.Navigations

<SfTreeView TValue="MailItem">
    <TreeViewFieldsSettings TValue="MailItem"
        Id="Id"
        Text="FolderName"
        Child="Children"
        DataSource="@MyFolder">
    </TreeViewFieldsSettings>
    <TreeViewEvents TValue="MailItem" NodeSelected="OnNodeSelected"></TreeViewEvents>
</SfTreeView>

@code {
    public class MailItem
    {
        public string? Id { get; set; }
        public string? FolderName { get; set; }
        public List<MailItem>? Children { get; set; }
    }

    void OnNodeSelected(NodeSelectEventArgs args)
    {
        Console.WriteLine($"Selected: {args.NodeData.Text}");
    }

    List<MailItem> MyFolder = new()
    {
        new MailItem { Id = "1", FolderName = "Inbox", Children = new() },
        new MailItem { Id = "2", FolderName = "Sent", Children = new() }
    };
}

Key Properties

PropertyTypeDefaultPurpose
AllowDragAndDropboolfalseEnable/disable drag-drop hierarchy reordering
AllowEditingboolfalseAllow double-click node renaming
AllowMultiSelectionboolfalseEnable Ctrl+Click multi-selection
ShowCheckBoxboolfalseDisplay checkboxes for each node
AutoCheckbooltrueAuto-check/uncheck children when parent checked
EnablePersistenceboolfalsePersist expanded/selected/checked state to localStorage
EnableVirtualizationboolfalseVirtual scrolling for 1000+ nodes (requires Height)
ExpandedNodesstring[]EmptyInitially expanded node IDs (2-way bindable)
SelectedNodesstring[]EmptySelected node IDs (2-way bindable)
CheckedNodesstring[]EmptyChecked node IDs (2-way bindable)
LoadOnDemandbooltrueLoad children only when node expands
ExpandOnExpandActionClickTrigger expand on Click/DoubleClick/None
Heightstring"auto"Fixed height (required for virtualization)

Key Methods

MethodPurpose
ExpandAllAsync()Expand all nodes
ExpandAllAsync(string[] nodeIds)Expand specific nodes by ID
CollapseAllAsync()Collapse all nodes
CollapseAllAsync(string[] nodeIds)Collapse specific nodes
BeginEditAsync(string nodeId)Enter edit mode for a node
GetTreeData()Get all tree data
GetTreeData(string nodeId)Get specific node data by ID
EnsureVisibleAsync(string nodeId)Scroll to make node visible
CheckAllAsync()Check all checkboxes
UncheckAllAsync()Uncheck all checkboxes
ClearStateAsync()Clear all state (selection, expand, check)

Key Events

EventFires WhenCommon Uses
CreatedTreeView initializedPost-initialization setup, load preferences
DataBoundData binding completeAuto-expand default nodes, validate data
NodeSelectedNode left-clickedLoad node details, enable actions
NodeClickedNode clickedDistinguish single vs double-click
NodeExpandedNode expandedLoad child nodes (load-on-demand)
NodeCollapsedNode collapsedOptional: Unload children from memory
NodeEditingBefore edit modeValidate permissions, prevent edits
NodeEditedEdit confirmedValidate new text, save to server
OnNodeDragStartDrag beginsPrevent dragging restricted nodes
NodeDroppedDrop completedUpdate hierarchy in server
NodeCheckingBefore checkbox changesPrevent checking restricted nodes
NodeCheckedCheckbox changedUpdate related data, trigger actions
DataSourceChangedData source updatedRe-apply filters, refresh calculations
OnActionFailureAction fails (API error)Recover from errors, show notifications
OnKeyPressKey pressedImplement keyboard shortcuts (Delete, F2, etc)

Common Patterns

Pattern 1: Basic Selection

<SfTreeView TValue="Item" @bind-SelectedNodes="@SelectedIds">
    <TreeViewFieldsSettings TValue="Item" DataSource="@Items" />
    <TreeViewEvents TValue="Item" NodeSelected="OnSelect"></TreeViewEvents>
</SfTreeView>

@code {
    string[] SelectedIds = Array.Empty<string>();
    void OnSelect(NodeSelectEventArgs args) => Console.WriteLine(args.NodeData.Text);
}

Pattern 2: Multiple Selection

<SfTreeView TValue="Item" AllowMultiSelection="true" @bind-SelectedNodes="@SelectedIds">
    <TreeViewFieldsSettings TValue="Item" DataSource="@Items" />
</SfTreeView>

Pattern 3: Load on Demand

void OnNodeExpanded(NodeExpandEventArgs args)
{
    if (args.NodeData.HasChild && args.NodeData.Child == null)
    {
        // Load children from API
        args.NodeData.Child = await FetchChildren(args.NodeData.Id);
    }
}

Pattern 4: Drag and Drop

<SfTreeView TValue="Item" AllowDragAndDrop="true">
    <TreeViewFieldsSettings TValue="Item" DataSource="@Items" />
    <TreeViewEvents TValue="Item" NodeDropped="OnDropped"></TreeViewEvents>
</SfTreeView>

void OnDropped(DragAndDropEventArgs args) => UpdateHierarchy(args);

Pattern 5: Node Editing

<SfTreeView TValue="Item" AllowEditing="true" DoubleClickAction="DoubleClickAction.Edit">
    <TreeViewFieldsSettings TValue="Item" DataSource="@Items" />
    <TreeViewEvents TValue="Item" NodeEdited="OnEdited"></TreeViewEvents>
</SfTreeView>

void OnEdited(NodeEditEventArgs args) => SaveChanges(args.NodeData);

Pattern 6: Checkboxes

<SfTreeView TValue="Item" AllowCheckBoxes="true" ChildChecking="ChildCheckState.Both">
    <TreeViewFieldsSettings TValue="Item" DataSource="@Items" />
</SfTreeView>

var checked = treeRef.GetAllCheckedNodes();

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and NuGet package setup
  • Project configuration by type (WebAssembly, Server, Web App, MAUI)
  • CSS theme configuration
  • Service registration and first TreeView component

Data Binding and Sources

📄 Read: references/data-binding.md

  • Local data binding (hierarchical and self-referential structures)
  • Remote data with OData, OData V4, and Web API adaptors
  • Load on Demand for large datasets
  • TreeViewFieldsSettings property mappings
  • DataBound event for post-binding operations

Node Selection

📄 Read: references/node-selection.md

  • Single node selection (default behavior)
  • Multi-selection with AllowMultiSelection property
  • Accessing selected node data via NodeSelected event
  • Programmatic selection using SelectedNodes binding
  • Selection validation and conditional selection

Expand and Collapse Actions

📄 Read: references/expand-collapse-actions.md

  • Expand/collapse methods (ExpandAllAsync, CollapseAllAsync)
  • ExpandedNodes two-way binding for programmatic control
  • Initial expand state via data source
  • Expand/collapse animations with TreeViewNodeAnimationSettings
  • Load-on-demand child node loading via NodeExpanded event

Node Editing

📄 Read: references/node-editing.md

  • Enable editing with AllowEditing property
  • Double-click to enter edit mode
  • BeginEditAsync method for programmatic edit entry
  • NodeEditing and NodeEdited events for validation
  • Rename operations with conflict detection

Checkbox Features

📄 Read: references/checkbox-features.md

  • ShowCheckBox property for multi-item selection
  • AutoCheck for automatic parent-child synchronization
  • CheckedNodes two-way binding for programmatic control
  • Getting checked nodes with filtering and iteration
  • Permissions and role-based checkbox patterns

Events and Callbacks

📄 Read: references/events-handling.md

  • Lifecycle events (Created, DataBound)
  • Selection events (NodeSelected, SelectedNodesChanged)
  • Expand/collapse events (NodeExpanded, NodeCollapsed)
  • Edit events (NodeEditing, NodeEdited)
  • Checkbox events (NodeChecking, NodeChecked)
  • Drag-drop events (OnNodeDragStart, NodeDropped)
  • Keyboard shortcuts (Enter, Delete, F2, Arrow keys)

Advanced Features

📄 Read: references/advanced-features.md

  • Drag-and-drop with hierarchy reordering
  • UI virtualization for 1000+ nodes
  • Search and filtering functionality
  • Sorting (Ascending, Descending, None)
  • Performance optimization techniques

Customization and Styling

📄 Read: references/customization-styling.md

  • Icon customization (expand/collapse, node icons)
  • Dynamic icons based on data
  • Text wrapping and display formatting
  • CSS styling with e-icons classes
  • Theme support and responsive design

Authorization and Security

📄 Read: references/authorization-authentication.md

  • Authentication setup with AuthorizeView
  • Role-based authorization and permissions
  • Node-level access control
  • Claims-based authorization patterns
  • Securing edit operations and drag-drop

Navigation Patterns

📄 Read: references/navigation-patterns.md

  • Node traversal methods (parent, children, siblings)
  • Breadcrumb navigation implementation
  • NavigateUrl property for node links
  • Parent-child navigation relationships
  • Deep-linking to specific nodes

Quick Links and Real-World Examples

Need help? Start with:

  1. Quick Start - Get running in 5 minutes
  2. Common Patterns - Copy-paste patterns for your use case
  3. Key Properties - Find property details
  4. data-binding.md - Learn data binding approaches
  5. events-handling.md - Understand all events

Real-world implementations:

  • File Browser: Use hierarchical data + expand-collapse + icons + drag-drop
  • Organization Chart: Use data-binding + templates + multi-level navigation
  • Navigation Menu: Use hierarchical data + keyboard navigation + load-on-demand
  • Category Filter: Use self-referential data + checkboxes + filtering
  • Permissions UI: Use checkboxes + AutoCheck + role-based authorization

Summary

This skill provides comprehensive guidance for implementing the Syncfusion Blazor TreeView component. Use the Documentation and Navigation Guide section above to find the specific reference file you need based on your use case.

平台分布

Codex

34.86%
按下载量换算111

Claude

32.93%
按下载量换算104

Cursor

20.19%
按下载量换算64

Gemini CLI

9.49%
按下载量换算30

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills