You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
528 B

import { VariableWithMultiSupport } from 'app/features/variables/types';
import { OptionsVariableBuilder } from './optionsVariableBuilder';
export class MultiVariableBuilder<T extends VariableWithMultiSupport> extends OptionsVariableBuilder<T> {
withMulti(multi = true) {
this.variable.multi = multi;
return this;
}
withIncludeAll(includeAll = true) {
this.variable.includeAll = includeAll;
return this;
}
withAllValue(allValue: string) {
this.variable.allValue = allValue;
return this;
}
}