Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make exclude filter
Message
 
 
À
16/02/2017 03:54:14
Information générale
Forum:
AngularJS
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01647997
Message ID:
01648016
Vues:
25
>>Hi,
>>
>>Haven't seen Viv here lately - is he still visiting UT?
>>
>>I'm wondering how can I create a filter that will exclude items already selected? We do have such filter defined and in HTML it would be
>>
>>filter = "excludeFrom: currentOperatorsNotification.selectedOperators : 'value' : 'opCode'"
>>
>>
>>I am wondering how would I rather create the filter in js code (in the controller), so I would just use
>>filter = 'someFilterExpression'
>
>Still around :-}
>But how do you determine which items are 'already selected' ? A property of the item or another array for selected items ?

We have 2 object arrays. Once the item is placed in the first array, it should not be available in the other array. In other words, if the opCode is already in the currentOperatorsNotification.selectedOperators array of objects, it should be removed from the drop down choices of operators (value/label)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform