contributte / forms-wizard

:tophat: Easy to use step-by-step form for Nette Framework
https://contributte.org/packages/contributte/forms-wizard.html
MIT License
15 stars 10 forks source link

nette 2.4 #15

Closed JStika closed 3 years ago

JStika commented 4 years ago

I'm geting error:

Class 'Contributte\FormWizard\DI\WizardExtension' not found

when I did to add to extension.neon

extensions:

What is the solution. Can you help me, please?

JStika commented 4 years ago

I forgot info, I got "contributte/forms-wizard": "^2.1@dev" after install

f3l1x commented 4 years ago

Hey man. Namespace has changed since v3.0.

Take a look at 2.0 readme https://github.com/contributte/forms-wizard/blob/2.0.1/README.md

JStika commented 4 years ago

Very, very big thank you for fast answer.

JStika commented 4 years ago

I have a request. Can you show me an example of how to use radioboxes in the table or grid (after selecting the radiobox, the next button would be enabled, otherwise it would be disabled) in the first step.

Thank you.

JStika commented 4 years ago

How can I set up in construct from presenter $lang and $userId?

MartkCz commented 4 years ago
  1. Imho
protected function createStep2(): Form 
{
    $values = $this->getValues();
    if ($values['inputName']) {
        $input->setDisabled();
    }
}
  1. via factory
interface MyWizardFactory {

    public function create(string $lang, int $userId): MyWizard;

}

class MyWizard extends Wizard {

    __constructor(Session $session, string $lang, int $userId)

}
f3l1x commented 3 years ago

Feel free to ask about anything. Closing issue here.