gpt4 book ai didi

javascript - 更改具有 CustomTreeItem 的 Sap.m.tree 中的图标

转载 作者:行者123 更新时间:2023-12-03 03:13:52 26 4
gpt4 key购买 nike

我有一个 sap.m.tree 控件,并且正在使用 CustomTreeItem 我想更改左侧的默认箭头图标,请参阅Image Attached .

最佳答案

您可以在 Init 方法(在 View 级别或组件/应用程序级别)中执行以下语句,并将图标更改为您需要的任何内容。我将默认图标更改为加号和减号。

        sap.m.TreeItemBase.prototype.ExpandedIconURI = sap.ui.core.IconPool.getIconURI("less");
sap.m.TreeItemBase.prototype.CollapsedIconURI = sap.ui.core.IconPool.getIconURI("add");

如果您需要更多信息,请告诉我。

关于javascript - 更改具有 CustomTreeItem 的 Sap.m.tree 中的图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46849293/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com