-
Hi all, I've got a screen with the layout defined as follows:
What I'd like to have are two command buttons next to each other, but the screen only renders the first one. If I change the order, the other button is shown, again on it's own, so it's not an issue with my Button command. Any thoughts on whether this should work? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey Andy, you can pass an array of actions ( public function layout(): array
{
return [
Layout::block(MobileVerificationLayout::class)->commands([
Button::make(__("Resend code"))
->type(Color::DEFAULT())
->icon("check")
->method("resendCode"),
Button::make(__("Verify code"))
->type(Color::DEFAULT())
->icon("check")
->method("verifyCode")
]),
];
} |
Beta Was this translation helpful? Give feedback.
-
Hi @tabuna , Thanks SO much! Regards, |
Beta Was this translation helpful? Give feedback.
Hey Andy, you can pass an array of actions (
->commands([...])
) for this to work: