Skip to content

Semantic rendering still possible with renderer: <fn>? #2822

Description

@boghyon

Given:

Control.extend("sap.mylib.MyControl", {
  metadata : {
    // ...
  },
  renderer: function(oRM, oControl) {
    oRM.openStart("div", oControl);
    // ...
    oRM.openEnd();
    oRM.text(oControl.getText());
    oRM.close("div");
  }
});

Question:

According to the API reference, specifying the render function directly is still allowed:
https://github.com/SAP/openui5/blob/19ecd4255dbf3a65bf737502880b65cc1a533888/src/sap.ui.core/src/sap/ui/core/Control.js#L224

..which can be also seen in a walkthrough step.

But with that approach, due to the missing apiVersion: 2 flag, in-place DOM patching isn't performed.
Is there a plan to implicitly enable apiVersion: 2 in that case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions