Files
grafana/public/app/features/variables/shared/testing/multiVariableBuilder.ts
kay delaney cadc551a3c Chore: Remove deprecated re-exported template variable types (#87459)
Chore: Remove deprecated re-exported template varible types
2024-05-10 12:00:41 +01:00

19 lines
514 B
TypeScript

import { VariableWithMultiSupport } from '@grafana/data';
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;
}
}