How to add width to TextInputColumn in a table?
I have the following type of column:
TextInputColumn::make('siren_number')
How can I provide it more width so the content is visible?7 Replies
->limit(100)
or whatever limit you wantGet this error when adding a
limit(100)
to TextInputColumn
:
Method Filament\Tables\Columns\TextInputColumn::limit does not exist.
Ohhh, thats right.. 1m
Any ideas anybody?
Did you try to use ->grow() to the TextInputColumn? Or maybe use ->extraAttributes to specify width
https://filamentphp.com/docs/3.x/tables/columns/getting-started#controlling-the-width-of-columns
https://filamentphp.com/docs/3.x/tables/columns/getting-started#custom-attributes
Thank you @idk - This has worked for me:
TextInputColumn::make('siren_number')->extraAttributes(['style' => 'width: 500px']),
Nice!