Docs
API
  • render(renderTo: HTMLElement, data: Object, columnsWidth: Number)

    Function

    Render function, that used to render any not standard inside of expanded row.

    Example

    
    expander: {
      render: function(renderTo, data, columnsWidth){
        new FancyGrid({
          renderTo: renderTo,
          width: columnsWidth - 20,
          height: 'fit',
          minHeight: 100,
          trackOver: true,
          selModel: 'rows',
          theme: 'gray',
          cellHeight: 92,
          data: data.sold,
          emptyText: 'Nothing to display',
          defaults: {
            type: 'string'
          },
          columns: [{
            index: 'image',
            width: 180,
            type: 'image',
            cls: 'image-car',
            title: '',
            locked: true
          },{
            index: 'name',
            width: 140,
            title: 'Name'
          },{
            index: 'price',
            width: 79,
            type: 'currency',
            title: 'price',
          },{
            title: 'Color',
            index: 'color',
            width: 70,
            type: 'color',
            cls: 'color-column'
          }]
        });
      }
    },
    

    Default

    
    undefined