How to hide placeholder of file upload field?

So I want to show some uploaded files without allowing delete or upload new files but there is this huge ugly placeholder just above, and I don't see to have anyway to hide the placeholder. If I don't set placeholder, there will be some default text, if i set placeholder to empty string, there will still be that big fat rectangular above the files even if there is no text How can I hide that big fat rectangle placeholder above the files? This is my code. Thank you
FileUpload::make()
->openable()
->previewable(false)
->placeholder('Big Fat Rectangle above the file even if empty string')
->deletable(false)
->disabled()
->dehydrated(false),
FileUpload::make()
->openable()
->previewable(false)
->placeholder('Big Fat Rectangle above the file even if empty string')
->deletable(false)
->disabled()
->dehydrated(false),
No description
7 Replies
toeknee
toeknee4mo ago
What is the place holder? that's so blured
pocket.racer
pocket.racerOP4mo ago
the placeholder is just above the black rectangle, that big white rectangle even if i don't call ->placeholder() it still appear with some default text
toeknee
toeknee4mo ago
->placeholder(' ') or ->placeholder(false)
pocket.racer
pocket.racerOP4mo ago
->placeholder('') tried before, still got that big white rectangle on top ->placeholder(false) i haven't try false is not possible, in filament code it only accept null, closure or string
public function placeholder(string | Closure | null $placeholder): static
{
$this->placeholder = $placeholder;

return $this;
}
public function placeholder(string | Closure | null $placeholder): static
{
$this->placeholder = $placeholder;

return $this;
}
I tried all 3, doesn't remove that big white rectangle box
toeknee
toeknee4mo ago
Just add some extra class attributes and hide it with css then if you want.
pocket.racer
pocket.racerOP4mo ago
is it the ->meta() method?
toeknee
toeknee4mo ago
->extraAttributes(['class' => 'my_class'])
Want results from more Discord servers?
Add your server