Docs
API
  • tpl

    String

    HTML template for expanded row.

    Example: Basic

    
    expander: {
      tpl: [
        '<div style="float: left;">',
          '<img src="{image}" class="image-staff">',
        '</div>',
        '<div style="float: left;">',
          '<p>{name} {surname}</p>',
          '<p><b>Salary:</b> {salary}</p>',
          '<p><b>Phone:</b> {phone}</p>',
        '</div>'
      ].join(""),
      dataFn: function(grid, data){
        data.salary = '$' + (data.hour * 170 * 12).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
         
        return data;
      }
    },