possibilité de sauter une cellule

This commit is contained in:
Jephté Clain 2025-05-07 17:36:31 +04:00
parent 3754ed7454
commit a120143794

View File

@ -633,14 +633,15 @@ class CTable extends ComponentPrintable implements IParametrable {
/** @var string|int clé de la colonne courante */
protected $col;
function colTd($value): array {
function colTd($value): ?array {
$vs = $this->col($value);
if ($this->colCtx !== null) {
$vs = func::_call($this->colCtx, [$vs, $value, $this->col, $this->index, $this->row, $this->rawRow]);
if ($vs === false) return null;
} else {
$result = A::get($this->results, $this->col);
$valid = $result === null || $result["valid"];
$vs= [
$vs = [
"class" => ["danger" => !$valid],
$vs,
];