OptimalBPM / angular-schema-form-dynamic-select

AngularStrap and AngularUI dynamic select implementation(static/sync/async/http, filters) for Angular Schema Form
MIT License
55 stars 45 forks source link

strapselect into array with filterTriggers on item of array #87

Closed mathben closed 8 years ago

mathben commented 8 years ago

Hi!

I am interested to use filterTriggers in array item type strapselect on the same array item.

My problem, the filter in "habilites[].habilite" not work, it shows all enum value and not filter value from "habilites[].discipline"

This is my code (with french value) : http://pastebin.com/UrXr8LeK

I got not error in console.

Thanks for your help!

mathben commented 8 years ago

Ho, I find the solution :o

filterTriggers: ["model.habilites[arrayIndex].discipline"], filter: "model.habilites[arrayIndex].discipline==item.category"

I didn't set correctly filter option.