我有一个带有工具栏的树列表,我用它来创建新元素(它是一个文档列表),我想关注新创建的项目。我可以选择它,但我似乎没有找到一种方法来聚焦它:
const selected = documents.treeStore.getAt(documents.treeStore.findExact(
"documentId", current.id
));
if (selected) {
tree.cmp.setSelection(selected);
const node = tree.cmp.getSelection();// maybe redundant
// how do I focus this node into view?
}