Commit c09a9151 authored by Grand Francois's avatar Grand Francois
Browse files

#45 ParamValues : ajout de la propriété hasMultipleValues

Showing with 14 additions and 0 deletions
+14 -0
...@@ -278,6 +278,20 @@ export class ParamValues implements INubReference, IterableValues { ...@@ -278,6 +278,20 @@ export class ParamValues implements INubReference, IterableValues {
return this._currentValue.value; return this._currentValue.value;
} }
/**
* @return true si la config actuelle génère plusieurs valeurs
*/
public get hasMultipleValues(): boolean {
const it = this.getValuesIterator();
let n = 0;
for (const v of it) {
n++;
if (n > 1)
break;
}
return n > 1;
}
// interface INubReference // interface INubReference
public defineReference(target: IReferencedNub, desc: string) { public defineReference(target: IReferencedNub, desc: string) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment