Show TOC

Declarative Support: Data BindingLocate this document in the navigation structure

Declarative support in SAPUI5 also enables data binding.

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

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

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

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

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