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.
11 lines
404 B
11 lines
404 B
import { DataSourceRef } from '@grafana/data';
|
|
|
|
import { QueryVariableModel } from 'app/features/variables/types';
|
|
import { DatasourceVariableBuilder } from './datasourceVariableBuilder';
|
|
|
|
export class QueryVariableBuilder<T extends QueryVariableModel> extends DatasourceVariableBuilder<T> {
|
|
withDatasource(datasource: DataSourceRef) {
|
|
this.variable.datasource = datasource;
|
|
return this;
|
|
}
|
|
}
|
|
|