Skip to content
This repository has been archived by the owner on Apr 30, 2018. It is now read-only.

Cascading select dropdown #750

Open
suny5 opened this issue Sep 8, 2017 · 1 comment
Open

Cascading select dropdown #750

suny5 opened this issue Sep 8, 2017 · 1 comment

Comments

@suny5
Copy link

suny5 commented Sep 8, 2017

I want to create a cascading drop down in ng2 formly for angular 2 project can you please find some solution for that. I am using below ng2 formly json for that but it's not working.please help for this.

[{
"key": "firstName",
"type": "input",
"model": "formState",
"templateOptions": {
"label": "Filter First Name",
"placeholder": "Try: "Wil""
}
},
{
"key": "selectedPerson",
"type": "select",
"templateOptions": {
"label": "Person",
"options": [{
"label": "Wilcox Christian",
"id": "acosta_cantu"
},
{
"label": "Freda Melendez",
"id": "ballard_todd"
},
{
"label": "Suzette Velazquez",
"id": "reilly_lamb"
},
{
"label": "Roberson Downs",
"id": "dalton_davidson"
},
{
"label": "Brandi Hatfield",
"id": "angela_curtis"
},
{
"label": "Ingram Webster",
"id": "graciela_lott"
},
{
"label": "Essie Sharpe",
"id": "velasquez_townsend"
},
{
"label": "Williams Briggs",
"id": "rosanne_graves"
},
{
"label": "Cook Newman",
"id": "patricia_wood"
},
{
"label": "Francis Stewart",
"id": "haynes_munoz"
},
{
"label": "Barrera Bass",
"id": "carney_cruz"
},
{
"label": "Lakisha Rosario",
"id": "elise_shelton"
},
{
"label": "Brandie Clay",
"id": "harriett_morrow"
},
{
"label": "Kristie Landry",
"id": "burt_griffith"
},
{
"label": "Jaclyn Mueller",
"id": "carpenter_reyes"
},
{
"label": "Roseann Trujillo",
"id": "ellis_fernandez"
},
{
"label": "Liza Howe",
"id": "flores_lowery"
},
{
"label": "Walton Kinney",
"id": "carolina_arnold"
},
{
"label": "Bauer Marshall",
"id": "keller_macdonald"
},
{
"label": "Rena Foster",
"id": "brown_schneider"
}
],
"Options" : "option.id as option.label in options | filter:formState.firstName"
}
}
]

@egucciar
Copy link

Hi, this is angular 1 formly. Please see: https://github.com/formly-js/ng-formly

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants