|
1 | | -# Create a Cascading ComboBox Using Vue ComboBox |
| 1 | +# Cascading ComboBox Using Vue ComboBox |
2 | 2 |
|
3 | | -Get a quick overview on how to create a Cascading ComboBox using Vue ComboBox of Syncfusion. You will learn how to add a series of Syncfusion Vue ComboBox to the Vue application. Also, you will see how to populate the data source of second ComboBox based on the value selected from the first ComboBox. |
4 | | - |
5 | | -Example:https://ej2.syncfusion.com/vue/demos/#/material/combo-box/cascading.html |
| 3 | +**Repository Description:** A Vue.js project demonstrating cascading ComboBox components using Syncfusion, where dependent ComboBoxes populate based on parent selections. |
6 | 4 |
|
7 | | -Documentation:https://ej2.syncfusion.com/vue/documentation/combo-box/how-to/cascading |
| 5 | +## Overview |
8 | 6 |
|
| 7 | +Learn how to create a cascading ComboBox using Syncfusion Vue ComboBox. This project shows how to add multiple ComboBox components and populate dependent ComboBoxes based on parent selections—ideal for country-state scenarios and similar dependent dropdowns. |
9 | 8 |
|
10 | | -## Project pre-requisites |
11 | | -Make sure that you have the compatible versions of Node and Vue-Cli in your machine before starting to work on this project. |
| 9 | +## Prerequisites |
12 | 10 |
|
13 | | -## How to run this application? |
14 | | -To run this application, you need to first clone the `create-a-cascading-combo-box-using-vue-combo-box` repository and then navigate to its appropriate path where it has been located in your system. |
| 11 | +- Node.js (v12 or higher) |
| 12 | +- Vue CLI (v4 or higher) |
| 13 | +- npm (v6 or higher) |
15 | 14 |
|
16 | | -To do so, open the command prompt and run the below commands one after the other. |
| 15 | +## Installation |
17 | 16 |
|
18 | | -``` |
| 17 | +Clone the repository: |
| 18 | +```bash |
19 | 19 | git clone https://github.com/SyncfusionExamples/create-a-cascading-combo-box-using-vue-combo-box combobox-component |
20 | 20 | cd combobox-component |
| 21 | +npm install |
21 | 22 | ``` |
22 | 23 |
|
23 | | -## Installing |
24 | | -Once done with downloading, next you need to install the necessary packages required to run this application locally. The `npm install` command will install all the needed Vue packages into your current project and to do so, run the below command. |
| 24 | +## Running the Application |
25 | 25 |
|
| 26 | +Start the development server: |
| 27 | +```bash |
| 28 | +npm run serve |
26 | 29 | ``` |
27 | | -npm install |
28 | | -``` |
29 | 30 |
|
30 | | -## Running on development server |
31 | | -Run `npm run serve` command for a dev server. Navigate to `http://localhost:8080/`. The app will automatically reload if you change any of the source files. |
| 31 | +Navigate to `http://localhost:8080/`. The app reloads on file changes. |
| 32 | + |
| 33 | +## How It Works |
| 34 | + |
| 35 | +1. First ComboBox selection triggers an event |
| 36 | +2. Selected value filters/fetches data for the second ComboBox |
| 37 | +3. Second ComboBox updates its data source dynamically |
| 38 | +4. Extend this pattern to multiple cascading levels |
| 39 | + |
| 40 | +## Resources |
| 41 | + |
| 42 | +- **Demo**: [Cascading ComboBox Example](https://ej2.syncfusion.com/vue/demos/#/material/combo-box/cascading.html) |
| 43 | +- **Docs**: [Cascading Guide](https://ej2.syncfusion.com/vue/documentation/combo-box/how-to/cascading) |
| 44 | +- **Vue CLI**: [Vue-Cli README](https://github.com/vuejs/vue-cli/blob/master/README.md) |
32 | 45 |
|
33 | | -## Further help |
| 46 | +## Support |
34 | 47 |
|
35 | | -To get more help on the vue CLI use go check out the [Vue-Cli README](https://github.com/vuejs/vue-cli/blob/master/README.md). |
| 48 | +For help, check the Syncfusion Vue ComboBox documentation and Vue.js resources. |
0 commit comments