跳到内容
+

富文本树形视图 - 焦点

了解如何聚焦树形视图项目。

命令式 API

聚焦特定项目

使用 focusItem API 方法来聚焦特定项目。

apiRef.current.focusItem(
  // The DOM event that triggered the change
  event,
  // The id of the item to focus
  itemId,
);
Enter 键开始编辑

API

请参阅下面的文档,以获得此处提及的组件的所有 props 和 classes 的完整参考。