我正在使用UploadCollection. 右上角有一个标准的加号按钮,用户可以在其中上传新文件。我想在这个按钮上添加一个文本“添加新项目”。
标准 API 文档没有提及有关此按钮的任何内容。Fiori 指南声明不推荐,但我的用户仍想展示它。
有没有办法让这成为可能?
控件使用如下:
<UploadCollection id = "uploadCollection"
multiple = "true"
class = "sapUiNoMargin"
noDataText = "{i18n>noDataText}"
noDataDescription = "{i18n>noDataDescription}"
items = "{
path: 'app>/attachments',
templateShareable: false
}"
change = "onChangeUploadCollection"
beforeUploadStarts = "onBeforeUploadStarts"
fileDeleted = "onPressFileDelete"
uploadUrl = "/sap/opu/odata/xxx"
fileType = "{app>/filetypes}"
uploadComplete = "onUploadComplete"
typeMissmatch = "onTypeMissmatch">
</UploadCollection>