I write an attachment using the control sap.m.upload.UploadSet
.
When there is no attachment, it dispalys an icon with message like this:
In a sample from https://ui5.sap.com/#/entity/sap.m.upload.UploadSet, however, it displays with an illustrated message like that:
I compared the XML and JS code from the sample but couldn't find anything special.
How could I achieve the same effect like the sample from Demo Kit?
Your 1st screenshot shows the control sap.m.upload.UploadSet
from an older UI5 version.
Since UI5 1.104 (commit: d33e404
), UploadSet
uses its own instance of sap.m.IllustratedMessage
internally for the no data area by design.
Since UI5 1.117 (commit: 2af8989
), UploadSet
provides the property noDataIllustrationType
to which you can assign your own IllustratedMessageType
.
Migrate to one of the the next maintained UI5 versions.