title: SapUI5: How to add buttons dynamically into CutomListItem (xml)?
body: <p>How can i add <strong>buttons</strong> dynamically to a Custom list item fetching the data from oModel?</p>
  
  <p>XML:</p>
  
  <pre><code>&lt;List  items="{msgData&gt;/msgData}" &gt;
  &lt;CustomListItem&gt;
      &lt;MessageStriptext="{msgData&gt;Text}"&gt;&lt;/MessageStrip&gt;
  
  
          &lt;List  items="{msgData&gt;buttons}"&gt;
              &lt;CustomListItem&gt;
                  &lt;Button  text="{text}" press="onFedYes" class="sapUiTinyMarginEnd"/&gt;
              &lt;/CustomListItem&gt;
          &lt;/List&gt;
  
  
  &lt;/CustomListItem&gt;
  &lt;/List&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>    var oModel = this.fragment.getModel("msgData");
          var Buttons = [
              {"text": "Apple"},
              {"text": "Orange"},
              {"text": "Banana"}
          ];
  
              oModel.oData.msgData.push({
                  Type : "Information",
                  buttons:Buttons
              }); 
  oModel.refresh();
  </code></pre>
  
  <p>UPDATED CODE</p>