Can you tell us about the formatter in ui5 and how to use it?

devquora
devquora

Posted On: Jun 07, 2024

 

The formatter is used in ui5 when any changes have to be performed on the back end property data. The entire backend executions are done considering the front and property data. As a formatter can be used while data binding to any property which follows as-

ocontrol = new sap.ui.commons.TextField({

value: {path: "/path", formatter (o Event){

return "Value:" + o Event:

}}});

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    UI5 interview questions

    Why multi flow design pattern is use, how splitting is implemented in it?

    Utilizing multiple design patterns is essential for navigating complex application flows effectively. Manifest.json, alongside targeted properties like Parent and ControlID, facilitates seamless navig..

    UI5 interview questions

    What is UI5 and why it is considered?

    SAPUI5 is a client-side rendering library, akin to HTML5, adhering to internet application protocols. It's JavaScript-based, providing a lightweight programming model for web and mobile apps. SAPUI5 s..

    UI5 interview questions

    Explain the concept of navigation and component in ui5?

    SAPUI5 utilizes eventBus and routing mechanisms for application navigation. The 'sap.ui.core.routing' class, introduced in SAPUI5 1.16, defines routing within components. Components, often referred to..