possibilité de sauter une cellule
This commit is contained in:
parent
3754ed7454
commit
a120143794
@ -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,
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user