Change no data text for Search in SAPUI5


You just need to use the noDataText property to sort out your requirement.

You have two options, either you can change in controller or you can change in the XML.

Option 1:

Call the setNoDataText method in the init method

this.byId(“<Your Id>”).setNoDataText(“<Your custom text>”)

Option 2:

Add the noDataText property in the XML

<List noDataText="<Custom text>" />

Updated on: 12-Jun-2020

397 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements