F
Filament2y ago
Abi

Inline Radio Buttons with the form label on a separate line

I have the following code
Radio::make('claim_type')
->label('Claim Type')
->inlineLabel(false)
->options([
'damage' => 'Damage',
'lost' => 'Lost',
'stolen' => 'Stolen',
])->inline()->columns(1),
Radio::make('claim_type')
->label('Claim Type')
->inlineLabel(false)
->options([
'damage' => 'Damage',
'lost' => 'Lost',
'stolen' => 'Stolen',
])->inline()->columns(1),
How do I make the label Claim Type to be in its own line?
4 Replies
Dennis Koch
Dennis Koch2y ago
Don't use ->inline() I think. Not sure whether there are other options
Abi
AbiOP2y ago
but that changes it to
Abi
AbiOP2y ago
there is also an inlineLabel method, not sure what that does
Dan Harrin
Dan Harrin2y ago
i think dennis is right you dont use inlineLabel() or inline()
Want results from more Discord servers?
Add your server