multiVariableBuilder.ts 529 B

123456789101112131415161718
  1. import { VariableWithMultiSupport } from 'app/features/variables/types';
  2. import { OptionsVariableBuilder } from './optionsVariableBuilder';
  3. export class MultiVariableBuilder<T extends VariableWithMultiSupport> extends OptionsVariableBuilder<T> {
  4. withMulti(multi = true) {
  5. this.variable.multi = multi;
  6. return this;
  7. }
  8. withIncludeAll(includeAll = true) {
  9. this.variable.includeAll = includeAll;
  10. return this;
  11. }
  12. withAllValue(allValue: string) {
  13. this.variable.allValue = allValue;
  14. return this;
  15. }
  16. }