You can edit the column options to fit your needs.
This annotation has 2 properties :
dimension
: Dimension in pixelautoResize
: Automatically resize the column to fit the content
use RichId\ExcelGeneratorBundle\Annotation\ColumnDimension;
use RichId\ExcelGeneratorBundle\Model\ExcelContent;
class Content extends ExcelContent
{
/**
* @ColumnDimension(dimension=540)
*/
public $anyProperty;
/**
* @ColumnDimension(autoResize=true)
*/
public $anotherProperty;
}
This annotation has only one property :
count
: Number of columns to merge
use RichId\ExcelGeneratorBundle\Annotation\ColumnMerge;
use RichId\ExcelGeneratorBundle\Model\ExcelContent;
class Content extends ExcelContent
{
/**
* @ColumnMerge(count=4)
*/
public $anyProperty;
}
This annotation has no property. It auto resize the column.
use RichId\ExcelGeneratorBundle\Annotation\ColumnsAutoResize;
use RichId\ExcelGeneratorBundle\Model\ExcelContent;
class Content extends ExcelContent
{
/**
* @ColumnsAutoResize
*/
public $anyProperty;
}