Sami
Sami
TCTwill CMS
Created by Sami on 10/20/2024 in #👊support
renderHtml doesn't work in getBrowserTableColumns()
Hello, I'd like to render a small colored div inside browser column but renderHtml(true) doesn't seem to work
public function getBrowserTableColumns() : TableColumns
{
$table = parent::getBrowserTableColumns();

$table->add(
Text::make()->field('titled')->customRender(fn() => '<div style="background-color:red;">I wish this was rendered HTML</div>')->renderHtml(true)
);

return $table;
}
public function getBrowserTableColumns() : TableColumns
{
$table = parent::getBrowserTableColumns();

$table->add(
Text::make()->field('titled')->customRender(fn() => '<div style="background-color:red;">I wish this was rendered HTML</div>')->renderHtml(true)
);

return $table;
}
It works in getIndexTableColumns() tho any ideas? Twill 3.4.0
5 replies
TCTwill CMS
Created by Sami on 3/27/2024 in #👊support
Tags in create modal
Hello! Is it possible to have Tags input in create modal form? Last time I tried, it threw an error. oh, edit: Twill version is 3.0.2
3 replies