PATH:
home
/
rwabteecom
/
public_html
/
vendor
/
rappasoft
/
laravel-livewire-tables
/
src
/
Views
/
Traits
/
Helpers
/
Editing: ColorColumnHelpers.php
<?php namespace Rappasoft\LaravelLivewireTables\Views\Traits\Helpers; use Illuminate\View\ComponentAttributeBag; trait ColorColumnHelpers { // TODO: Test public function getColor($row): string { return $this->hasColorCallback() ? app()->call($this->getColorCallback(), ['row' => $row]) : ($this->getValue($row)); } public function getColorCallback(): ?callable { return $this->colorCallback; } public function hasColorCallback(): bool { return isset($this->colorCallback); } }
SAVE
CANCEL