redhat-developer / vscode-wizard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic wizard

angelozerr opened this issue · comments

In vscode kafka we need to manage dynamic wizard. The first page is a combo:

image

If user select Configure Manually the next button should open the page:

image

in the another case it should not open an another wizard page (it will create cluster without filling a wizard page coming from Red Hat / Kafka

This is easily accomplished via the workflowManager.

In the workflow manager you can check the data map for the value of a given field, and then return varying 'next' and 'previous' pages given the state of the map.

If i understand your usecase correctly, if the user selects the first option, a second page should show. If the user selects the second option, 'back' and 'next' should be disabled (there is no second page) and only 'finish' should be enabled? This is easily accomplished.

Doable and demonstrated in sample