Split item width
Is it possible to use split whilst making one of the items a fixed width for example? Maybe with breakpoints as well. Because currently I have grow set to false and it looks a bit silly:
13 Replies
Yes I'm using split, but I can't figure out way to have a fixed with or something like that
Try something like this:
The code you sent would be the ideal solution, but the problem is that ->columns is only accepting array|int|string|null, but not a closure. And I need a closure because the planning section is optional and not always visible.
In case it's invisible, the "Algemeen" section should fill the screen.
ja ok, but you can have the function inside the form function, then define a vairable $columns, and have the as input to
->columns()
Good idea!
Hmm it doesn't work. It's because it all depends on whether this field has a value or not, and apparently I can't change it's value, probably because form is a static function I'm guessing
You can change values with Get Set
They are called dependable states
or something like that
Dependant fields
Found it! π
Solution
nice
Whilst you can't pass a closure to columns, you can with columnSpan
Thanks for helping out!