title: Sapui5: How can I add a button list to custom control?
body: <p>I am getting data from oModel, and it {msgData} object</p>
  
  <pre><code>          var Buttons = [{text:"apple"},{text:"banana"}]; 
            var sQuery = "some text...";
  
            oModel.oData.msgData.push({
                  Type : "Information",
                  buttons:Buttons,
                  customIcon:"media/chat/b_small.png",
                  Text: sQuery
              });
  
              oModel.refresh();
  </code></pre>
  
  <p>(in xml file, you can see the code below)
  <strong>XML</strong>:</p>
  
  <pre><code>    &lt;wt:MessageStrip
          text="{msgData&gt;Text}"
          type="{msgData&gt;Type}"
               &gt;
  
          // ***** NEED TO ADD THESE LINES ****
          &lt;List  items="{msgData&gt;buttons}" class="fixFlexFixedSize BtnBox"&gt;
              &lt;Button press="BtnClick" text="{msgData&gt;text}" class="sapUiTinyMarginEnd"/&gt;
          &lt;/List&gt;
  
      &lt;/wt:MessageStrip&gt;
  </code></pre>
  
  <p>How can I add Button list to a control?
  (Button list is in {msgData} object)</p>
  
  <p>MessageStrip.js</p>
  
  <pre><code>    sap.ui.define(["sap/m/MessageStrip"],
      function (MessageStrip) {
      "use strict";
      return MessageStrip.extend("com.sap.it.cs.itsdpphome.controller
                                     .fragments.MessageStrip", {
          metadata: {
              properties: {
              },
              aggregations: {
              },
              events: {
              }
          },
  
          init: function () {
          },
  
          renderer:{}
      });
  });
  </code></pre>