You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i search for the right way to bring in some extra columns into my grid.
My first example is a simple image column, like "src/folder/{{ row.id }}.jpg".
I am not sure what's the right way for this, i hope anyone can get me a short tipp?
My second problem are columns with a ManyToOne situation:
use Sorien\DataGridBundle\Grid\Column\Column;
class ImageColumn extends Column
{
public function getFilters()
{
return array();
}
public function renderCell($value, $row, $router)
{
return '<div class="image" style="background-image: url(\''.Image::getPath().'/'.$value.'\');"/></div>';
}
public function getType()
{
return 'image'; //important
}
}
Hi,
i search for the right way to bring in some extra columns into my grid.
My first example is a simple image column, like "src/folder/{{ row.id }}.jpg".
I am not sure what's the right way for this, i hope anyone can get me a short tipp?
My second problem are columns with a ManyToOne situation:
But my column category does not work/display in my grid with this configuration.
I hope anyone can help?
Thanks!
The text was updated successfully, but these errors were encountered: