Nathan
Nathan
FFilament
Created by Nathan on 11/17/2023 in #❓┊help
Column grow doesn't work outside of Split/Stack
Hi, I'm new to Filament, and I'm building my first table. With the help of the documentation and the generated code, I figured out how to add columns, set labels, and make columns sortable and searchable. I've configured a Position TextColumn, containing a number and the source of the default sort; a Title column, containing a string, and I have the Edit column on the far right. In the documentation, there's a reference to a grow function that, when set to false, is supposed to shrink that column to a minimum width, while the other columns that, with this defaulted to true, will take up the extra space left behind. Unfortunately, even with ->grow(true) on the Position column, both the Position and Title columns are taking up the same width in the table. I've also tried using extraAttributes to try to set max-width:10% on the Position column, just to see if that would have an effect, but it doesn't; it does get applied to the div containing the value, but then that is wrapped in an anchor tag (linking to the Edit form), and that anchor tag is what seems to be what's so wide (Because it has the w-full class?). I don't mind being able to click anywhere on the record to access the Edit form, but, assuming this is what's preventing grow from working, I'm not sure how to fix it, nor is it clear how to disable it in the meantime. Any help or insight would be appreciated. I'm using Filament 3.x on Laravel 10.x.
21 replies