<klip>
   <identity>
      <title>
         API: Setup
      </title>
   </identity>
   <locations>
      <contentsource>
         http://support.klipfolio.com/files/demo/demo.xml
      </contentsource>
      <icon>
         http://www.klipfolio.com/static/klips/klipfolio/sample_icon.png
      </icon>
      <banner>
         http://www.klipfolio.com/static/klips/klipfolio/sample_banner.png   
      </banner>
   </locations>
   <style>
      alert {
         type: item;
      }

      sender {
         itemcol: 2;
         noterow: 1;

         label: 'Sender';

         emphasis: strong;
      }


      summary {
         itemcol: 3;
         noterow: 4;

         wrap: false;

         notelabel: false;
      }

      date {
         itemcol: 4;
         noterow: 2;

         label: 'Date';
      }

      category {
         noterow: 3;

         label: 'Category';
      }


      level {
         itemcol: 1;
         noterow: 5;
         notelabel: false;
         
         type: image;
      }

      url {
         type: link;
      }
            
      id {
         key: override;
      }
      
   </style>
   <klipscript>
   <![CDATA[

function onLoad() {

    var tab = Setup.addTab ("Sample UI");
    tab.addText ("Convert:");
    textField = tab.addTextField( "1" );
    
    comboBox = tab.addComboBox();
    comboBox.addItem( "Canadian Dollar (CAD)" );
    comboBox.addItem( "Euro (EUR)" );
    comboBox.addItem( "U.S. Dollar (USD)" );

    tab.addText( "To the following currencies:" );
    
    listControl = tab.addListControl (true);
    listControl.addItem( "Canadian Dollar (CAD)" );
    listControl.addItem( "Euro (EUR)" );
    listControl.addItem( "U.S. Dollar (USD)" );
    
    checkBox = tab.addCheckbox( "Display full currency names in the Klip" )
} 

function onRefresh()
{
	return Engines.Data.process( Prefs.contentsource );
}
  
   ]]>
   </klipscript>
</klip>

