Example of Generating a Combo Box with Multiple Options

In this example, we use the following code make the call to the Template Manager to generate a combo box with multiple options Value 1, Value 2, and Value 3:

var markup = tmplMgr.GenerateMarkup({    
         type : consts.get( "SWE_CTRL_COMBOBOX" ),    
         value: [ "Value 1", "Value 2", "Value 3" ],    
         index: 1 // zero based index    
      }); 

In the this example, this is the expected HTML string begin held by the markup variable:

<select class="siebui-select ">    
         <option>Value 1</option>    
         <option selected> Value 2</option>    
         <option>Value 3</option>    
</select>