title: Can a select drop down list be added to my winJS toolbar via Javascript?
body: <p>I have created a toolbar in my windows app which contains a few buttons.</p>
  
  <p>What I want is a select dropdown list along side these buttons but no idea how to create it or append it to the toolbar via Javascript (as the elements of the list will change depending on the dataset I use).</p>
  
  <p>I create my toolbar like so :</p>
  
  <pre><code>//JS
  
  var viewsDataArray = [
      new WinJS.UI.Command(null, { id: 'cmdDelete', label: 'delete', section: 'primary', type: 'button', icon: 'delete', tooltip: 'View 1', onclick: clickbuttonprintout() }),
      new WinJS.UI.Command(null, { id: 'cmdFavorite', label: 'favorite', section: 'primary', type: 'toggle', icon: 'favorite', tooltip: 'View 2', onclick: clickbuttonprintout() }),
                              ];
  
  
  window.createImperativeToolBar2 = function () {
           var tb = new WinJS.UI.ToolBar(document.querySelector("#toolbarContainer2"), {
                      data: new WinJS.Binding.List(viewsDataArray)
                  });
              }
  
  createImperativeToolBar2();
  
  //html 
  
  &lt;div id="toolbarContainer2" style="direction: rtl" &gt;&lt;/div&gt;
  </code></pre>