Default button alignment for Repeater action

Currently default behaviour is to center a button, this can be overrided with ->addActionAlignment(Alignment::Start), however it bloats the code. Is there anyway to set a default position? Or override / extend / hack class to do so? This also looks strange since Forms submit button is placed on the left.
Solution:
You could set a default via ServiceProvider I suppose. Something like: ```php Repeater::configureUsing(function (Repeater $repeater) { return $repeater...
Jump to solution
4 Replies
gcardinal
gcardinalOP4w ago
No description
awcodes
awcodes4w ago
How does it bloat the code? But you can just use a custom theme, and do it with css. You can also do it globally with configureUsing() in a service provider so you don’t have to apply it on each instance.
Solution
dissto
dissto4w ago
You could set a default via ServiceProvider I suppose. Something like:
Repeater::configureUsing(function (Repeater $repeater) {
return $repeater
->addActionAlignment(Alignment::Start)
});
Repeater::configureUsing(function (Repeater $repeater) {
return $repeater
->addActionAlignment(Alignment::Start)
});
gcardinal
gcardinalOP4w ago
Thank you! Worked perfectly.
Want results from more Discord servers?
Add your server