diff --git a/src/param/param-values.ts b/src/param/param-values.ts index 2317d3a99ccf0e65cfcf624cc3dbb40b7d591583..f8e46ff9f22f95b22f5a80a6b05b7194d3493dbc 100644 --- a/src/param/param-values.ts +++ b/src/param/param-values.ts @@ -278,6 +278,20 @@ export class ParamValues implements INubReference, IterableValues { 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 public defineReference(target: IReferencedNub, desc: string) {