forked from grafana.jool/grafana-jool
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.
14 lines
444 B
14 lines
444 B
import { MultiVariableBuilder } from './multiVariableBuilder';
|
|
import { DataSourceVariableModel, VariableRefresh } from 'app/features/variables/types';
|
|
|
|
export class DatasourceVariableBuilder<T extends DataSourceVariableModel> extends MultiVariableBuilder<T> {
|
|
withRefresh(refresh: VariableRefresh) {
|
|
this.variable.refresh = refresh;
|
|
return this;
|
|
}
|
|
|
|
withRegEx(regex: any) {
|
|
this.variable.regex = regex;
|
|
return this;
|
|
}
|
|
}
|
|
|