define( function() {
"use strict";
function Control()
{
};
Control.prototype.draw = function( oControlHost )
{
var o = oControlHost.configuration || {};
var el = oControlHost.container;
var v_iHeight = ( o.Height || el.offsetHeight );
var v_iWidth = ( o.Width || el.offsetWidth );
var v_bPositionOnTheRight = ( o.Position == "Right" );
var sSourceType = o["Source Type"] || "Text";
var sSelector = "#" + el.id;
var sStyle =
'';
var sSvgIcon = o["SVG Icon"] || '';
var sSource = o.Text || "";
if ( !sSource && this.m_oDataStore )
{
sSource = this.m_oDataStore.getFormattedCellValue( 0, 0 );
}
switch ( sSourceType )
{
case "Text":
sSource = this.HTMLEncode( sSource );
break;
case "URL":
sSource = '';
break;
}
el.innerHTML = sStyle + '