hasDropdown = $condition; return $this; } public function dropdownPlacement(string | Closure | null $placement): static { $this->dropdownPlacement = $placement; return $this; } public function dropdownMaxHeight(string | int | Closure | null $height): static { $this->dropdownMaxHeight = $height; return $this; } public function dropdownWidth(string | Closure | null $width): static { $this->dropdownWidth = $width; return $this; } public function getDropdownPlacement(): ?string { return $this->evaluate($this->dropdownPlacement); } public function getDropdownMaxHeight(): string | int | null { return $this->evaluate($this->dropdownMaxHeight); } public function getDropdownWidth(): ?string { return $this->evaluate($this->dropdownWidth); } public function hasDropdown(): bool { return (bool) $this->evaluate($this->hasDropdown); } }