function LinkFormatter(options) {
    var urlTemplate = typeof options === 'string' ? options : options.urlTemplate;
    var matches = urlTemplate.match(/:(\w+)/g);
    var splatParams = [];
    var i, result, val;

    for (i in matches) {
      splatParams.push(matches[i].substring(1));
    }

    var len = splatParams.length;

    return function(row, cell, value, columnDef, rowDataItem, cellMetaInfo) {
      result = urlTemplate;
      for (i = 0; i < len; i++) {
        val = rowDataItem[splatParams[i]];
        if (typeof val != null) {
          result = result.replace(':' + splatParams[i], val);
        }
      }
      return value != null ? '<a href="' + result + '">' + value + '</a>' : null;
    };
  }
/*
   * Presents data as href by substituting
   * url template with values
   */
Presents data as href by substituting
url template with values
Presents data as href by substituting url template with values
function LinkFormatter(options) {
    var urlTemplate = typeof options === 'string' ? options : options.urlTemplate;
    var matches = urlTemplate.match(/:(\w+)/g);
    var splatParams = [];
    var i, result, val;
    for (i in matches) {
      splatParams.push(matches[i].substring(1));
    }
    var len = splatParams.length;
    return function(row, cell, value, columnDef, rowDataItem, cellMetaInfo) {
      result = urlTemplate;
      for (i = 0; i < len; i++) {
        val = rowDataItem[splatParams[i]];
        if (typeof val != null) {
          result = result.replace(':' + splatParams[i], val);
        }
      }
      return value != null ? '<a href="' + result + '">' + value + '</a>' : null;
    };
  }
function LinkFormatter ( options ) { var urlTemplate = typeof options === 'string' ? options : options . urlTemplate ; var matches = urlTemplate . match ( / :(\w+) / g ) ; var splatParams = [ ] ; var i , result , val ; for ( i in matches ) { splatParams . push ( matches [ i ] . substring ( 1 ) ) ; } var len = splatParams . length ; return function ( row , cell , value , columnDef , rowDataItem , cellMetaInfo ) { result = urlTemplate ; for ( i = 0 ; i < len ; i ++ ) { val = rowDataItem [ splatParams [ i ] ] ; if ( typeof val != null ) { result = result . replace ( ':' + splatParams [ i ] , val ) ; } } return value != null ? '<a href="' + result + '">' + value + '</a>' : null ; } ; }
Presents data as href by substituting
 url template with values
Presents data as href by substituting url template with values