benzo
How to test `headerActions`/`footerActions` from the Section component?
callTableAction
is a start to ensure the action is present on the page. But regarding the Importer
class, I have no clue except from testing each method of this class individually. Have you found something?6 replies
Wizard modal with custom modal content
Hey @shojibflamon, I have a boolean
$draft
property at the LW component level. Then my custom modal content has a "Save as draft" button firing the submit form action. This button contains a specific directive ( wire:click="$set('draft', true)" ) that allows me to have form validation and knowing in the same time if the submit action is a draft or not. This is my use case but it depends what you would like to achieve.23 replies
Wizard modal with custom modal content
Hey @Patrick Boivin , I ended up by making a form with a wizard inside as you cleverly advised. With this solution where I can have a better control on form data. I guess using steps is quick for basic wizard forms. Thanks for your guidances, learned a lot here!
23 replies
Wizard modal with custom modal content
Ok, If I add
->modalSubmitAction(false)
, it removes the submit button on the final step. I can not add a submitAction()
,this method is not available as this is not a Wizard object but an Action Modal with Steps. I could add another modal action 'submit the form' but I am not sure if I can retreive the "latest" step of the wizard to only display it on this condition. I am not sure to follow what you me to do!23 replies
Wizard modal with custom modal content
Sure! when clicking on the
next
button on the modal wizard, form validation happens. But when clicking on the modalAction
button, there is no validation. My modalAction needs the form data (adn validation ) to be performed. That's why I tried to pass the Form object into the callback but the object is null. For now I retrieve the form data from the LW component but without validation. Not sure if I can access the form object from the LW object23 replies
Wizard modal with custom modal content
OK, making progress here, but facing a new wall
The $form is not available at this level, I partially solved it by using the LW component which is accessible, [not ideal as I cannot fire validation] but I just want to know if it is the good way to do it
Maybe there is another way to make another button where the form data could be accessible. Ideas?
23 replies