I'm a beginner with Vue JS and I have a specific task in mind.
Task Description :
I need to create a dropdown with the following values.
https://i.sstatic.net/Nllw7.png
Upon selecting each value, a specific dropdown component should be added to the page. These dropdown components are predefined. For example:
- Upon selecting 'Closed', a searchable dropdown component will be added.
- Upon selecting 'Reviewed', another dropdown component will be added where users can select values from a list, not a searchable one.
Current Resources :
- I have all the required dropdown components ready as Vue components.
Current Approach :
- I have loaded all four types of dropdowns on page load and I'm toggling their visibility based on the selected dropdown value.
- For instance, only the searchable dropdown component is shown when 'Closed' is selected, and the selectable dropdown component is shown when 'Reviewed' is selected.
Issue :
- The new requirement is that users should be able to select any option multiple times, and each selection should add the corresponding dropdown component.
- This screen should also have editing capabilities.
Additional Information :
- Think of this as a filter function for the screen shown below https://i.sstatic.net/Lfn66.png
Any help or guidance would be greatly appreciated. Thank you in advance.