placeholder(__('filament-infolists::components.entries.key_value.placeholder')); } public function middleValueThroughState(array|Closure|null $state): static { $this->middleValueThroughState = $state; return $this; } public function getMiddleValueThroughState(): mixed { return $this->evaluate($this->middleValueThroughState); } /** * Set the label for the left column. * * @param string|Closure|null $label * @return static */ public function leftLabel(string|Closure|null $label): static { $this->leftLabel = $label; return $this; } /** * Set the label for the middle column. * * @param string|Closure|null $label * @return static */ public function middleLabel(string|Closure|null $label): static { $this->middleLabel = $label; return $this; } /** * Set the label for the right column. * * @param string|Closure|null $label * @return static */ public function rightLabel(string|Closure|null $label): static { $this->rightLabel = $label; return $this; } /** * Get the label for the left column. * * @return string */ public function getLeftLabel(): string { return $this->evaluate($this->leftLabel) ?? __('filament-infolists::components.entries.key_value.columns.key.label'); } /** * Get the label for the left column. * * @return string */ public function getMiddleLabel(): string { return $this->evaluate($this->middleLabel) ?? __('filament-infolists::components.entries.key_value.columns.value.label'); } /** * Get the label for the left column. * * @return string */ public function getRightLabel(): string { return $this->evaluate($this->rightLabel) ?? __('filament-infolists::components.entries.key_value.columns.value.label'); } }