PackagePanel builder Package Versionv3.2.99 How can we help you?I want to open a modal when clicking a table action button, but having 3 buttons: Cancel and other two. I simply need to check the returned value (the pressed button). Is there a way to replace the default buttons or at least add buttons to be inline with those? Tried to work with modalContent() but the icon and the heading are not styled as in the modal appearing with requireConfirmation() (the icon i smaller and is right aligned, same as the heading): it's very frustrating to have dialogs styled differently with the same functions called! Tried to ignore modalIcon and modalHeading and display it myself with terrible styling results (the output is shifted to the right even if I declare text-center o use flex). Inside modalContent() i don't find a way to use the information on icon and heading. Is there a simple way to obtain the goal to have only the buttons I need in the modal? |
Replies: 3 comments 5 replies
|
You can add actions to the table along with the default actions or remove them by removing To style modal you can use
in the |
|
Hi, just use ->extraModalFooterActions([ YourAction1, YourAction2 ]). I usually disable the regular SubmitAction with ->modalSubmitAction(false) when i need more Options. To Align all Actions equally use ->modalFooterActionsAlignment(Alignment::Center), You can also disable the CancelAction with ->modalCancelAction(false). There is no need to create views for something like that. But there are three more options. If You need more space, because You have a lot of buttons add or when You need a describing Text or when You want a hiding Text Hope that helps :) ciao ed |



Hi,
just use ->extraModalFooterActions([ YourAction1, YourAction2 ]). I usually disable the regular SubmitAction with ->modalSubmitAction(false) when i need more Options.
To Align all Actions equally use ->modalFooterActionsAlignment(Alignment::Center), You can also disable the CancelAction with ->modalCancelAction(false).
There is no need to create views for something like that. But there are three more options. If You need more space, because You have a lot of buttons add
or when You need a describing Text
or when Y…