Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.23 KB

Declarative_Support_Data_Binding_deprecated_020990b.md

File metadata and controls

40 lines (23 loc) · 1.23 KB
loio
020990b1210e47c89a58a4f4e790c476

Declarative Support: Data Binding (deprecated)

Declarative support in OpenUI5 also enables data binding.

Caution:

Deprecated as of UI5 version 1.120, replaced by XML View.

Just add the model path in curly brackets and bind the model to the control (or parent control):

<div data-sap-ui-type="sap.m.Button" data-text="{/stringValue}" data-enabled="{model2>/booleanValue}"></div>

0..n aggregations can define templates to use for the list binding:

<div data-sap-ui-type="sap.m.Carousel" data-content="{/buttons}">
    <div data-sap-ui-type="sap.m.Button" data-text="{title}"></div>
</div>

In the example above, the button template is used for the carousel content data binding.

Related Information

Data Binding