Romesh
Romesh

Reputation: 2274

Column Header text is not binding with custom model

In component.ts file inside constructor() or init() setting custom model like

this.getModel('customModel').setData({
    "customColumn": "Column Title",
    "customAvailability": "hidden"
});
this.getModel('customModel').refresh(true);

In menifest json, added settings for custom column like

"columns": {
    "CustomColumn": {
        "header": "{customModel>/customColumn}",
        "position": {
            "anchor": "DataFieldForAnnotation::FieldGroup::CreatedData",
            "placement": "After"
        },
        "availability": "{customModel>/customAvailability}",
        "template": "sap.bdp.anydox.ext.fragment.CustomColumn"
    }
}

Table looks good as per screenshot enter image description here

But when I go to settings and see columns there title is not reflecting from model enter image description here

Upvotes: 0

Views: 35

Answers (0)

Related Questions