We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4f69cb + 9ae1d19 commit a9f9c58Copy full SHA for a9f9c58
src/Grid/Displayers/Label.php
@@ -15,8 +15,12 @@ public function display($style = 'success')
15
16
return collect((array) $this->value)->map(function ($item) use ($style) {
17
if (is_array($style)) {
18
- if (is_string($this->getColumn()->getOriginal()) || is_int($this->getColumn()->getOriginal())) {
19
- $style = Arr::get($style, $this->getColumn()->getOriginal(), 'success');
+ $columnValue = $this->getColumn()->getOriginal();
+
20
+ if (is_string($columnValue) || is_int($columnValue) || is_bool($columnValue)) {
21
+ $columnValue = is_bool($columnValue) ? (int) $columnValue : $columnValue;
22
23
+ $style = Arr::get($style, $columnValue, 'success');
24
} else {
25
$style = Arr::get($style, $item, 'success');
26
}
0 commit comments