Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.
You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page
Displays raw data without any escaping. Can be used to display HTML in grid.
Properties | Type | Expected value |
---|---|---|
field | string | required The record field name that the column displays. |
<?php
use PrestaShop\PrestaShop\Core\Grid\Column\Type\Common\HtmlColumn;
use PrestaShop\PrestaShop\Core\Grid\Column\ColumnCollection;
$htmlColumn = new HtmlColumn('description');
$htmlColumn->setName('Description');
$htmlColumn->setOptions([
'field' => 'description',
]);
$columns = new ColumnCollection();
$columns->add($htmlColumn);