mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
rename searchable prop
This commit is contained in:
parent
1e5f2f56e0
commit
3ca5abf5e9
@ -5,7 +5,7 @@ import Select from 'app/core/components/Select/Select';
|
|||||||
export interface Props {
|
export interface Props {
|
||||||
onChange: (value: string) => void;
|
onChange: (value: string) => void;
|
||||||
options: any[];
|
options: any[];
|
||||||
searchable: boolean;
|
isSearchable: boolean;
|
||||||
selected: string;
|
selected: string;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
className?: string;
|
className?: string;
|
||||||
@ -74,7 +74,7 @@ export class StackdriverPicker extends React.Component<Props, State> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { placeholder, className, searchable, onChange } = this.props;
|
const { placeholder, className, isSearchable, onChange } = this.props;
|
||||||
const { options } = this.state;
|
const { options } = this.state;
|
||||||
const selectedOption = this.getSelectedOption();
|
const selectedOption = this.getSelectedOption();
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ export class StackdriverPicker extends React.Component<Props, State> {
|
|||||||
backspaceRemovesValue={false}
|
backspaceRemovesValue={false}
|
||||||
onChange={item => onChange(item.value)}
|
onChange={item => onChange(item.value)}
|
||||||
options={options}
|
options={options}
|
||||||
isSearchable={searchable}
|
isSearchable={isSearchable}
|
||||||
maxMenuHeight={500}
|
maxMenuHeight={500}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
noOptionsMessage={() => 'No options found'}
|
noOptionsMessage={() => 'No options found'}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
onChange="ctrl.handleAggregationChange"
|
onChange="ctrl.handleAggregationChange"
|
||||||
selected="ctrl.target.aggregation.crossSeriesReducer"
|
selected="ctrl.target.aggregation.crossSeriesReducer"
|
||||||
options="ctrl.aggOptions"
|
options="ctrl.aggOptions"
|
||||||
searchable="true"
|
is-searchable="true"
|
||||||
placeholder="'Select Aggregation'"
|
placeholder="'Select Aggregation'"
|
||||||
className="'width-15'"
|
className="'width-15'"
|
||||||
template-variables="ctrl.templateSrv.variables"
|
template-variables="ctrl.templateSrv.variables"
|
||||||
@ -28,7 +28,7 @@
|
|||||||
onChange="ctrl.handleAlignmentChange"
|
onChange="ctrl.handleAlignmentChange"
|
||||||
selected="ctrl.target.aggregation.perSeriesAligner"
|
selected="ctrl.target.aggregation.perSeriesAligner"
|
||||||
options="ctrl.alignOptions"
|
options="ctrl.alignOptions"
|
||||||
searchable="true"
|
is-searchable="true"
|
||||||
placeholder="'Select Alignment'"
|
placeholder="'Select Alignment'"
|
||||||
className="'width-15'"
|
className="'width-15'"
|
||||||
template-variables="ctrl.templateSrv.variables"
|
template-variables="ctrl.templateSrv.variables"
|
||||||
@ -45,7 +45,7 @@
|
|||||||
onChange="ctrl.handleAlignmentPeriodChange"
|
onChange="ctrl.handleAlignmentPeriodChange"
|
||||||
selected="ctrl.target.aggregation.alignmentPeriod"
|
selected="ctrl.target.aggregation.alignmentPeriod"
|
||||||
options="ctrl.alignmentPeriods"
|
options="ctrl.alignmentPeriods"
|
||||||
searchable="true"
|
is-searchable="true"
|
||||||
placeholder="'Select Alignment'"
|
placeholder="'Select Alignment'"
|
||||||
className="'width-15'"
|
className="'width-15'"
|
||||||
template-variables="ctrl.templateSrv.variables"
|
template-variables="ctrl.templateSrv.variables"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
onChange="ctrl.handleServiceChange"
|
onChange="ctrl.handleServiceChange"
|
||||||
selected="ctrl.target.service"
|
selected="ctrl.target.service"
|
||||||
options="ctrl.services"
|
options="ctrl.services"
|
||||||
searchable="false"
|
is-searchable="false"
|
||||||
placeholder="'Select Services'"
|
placeholder="'Select Services'"
|
||||||
className="'width-15'"
|
className="'width-15'"
|
||||||
></stackdriver-picker>
|
></stackdriver-picker>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
options="ctrl.getMetricsList()"
|
options="ctrl.getMetricsList()"
|
||||||
template-variables="ctrl.templateSrv.variables"
|
template-variables="ctrl.templateSrv.variables"
|
||||||
group-name="'Metric Types'"
|
group-name="'Metric Types'"
|
||||||
searchable="true"
|
is-searchable="true"
|
||||||
placeholder="'Select Metric'"
|
placeholder="'Select Metric'"
|
||||||
className="'width-15'"
|
className="'width-15'"
|
||||||
></stackdriver-picker>
|
></stackdriver-picker>
|
||||||
|
@ -67,7 +67,7 @@ export class StackdriverQueryCtrl extends QueryCtrl {
|
|||||||
'options',
|
'options',
|
||||||
'onChange',
|
'onChange',
|
||||||
'selected',
|
'selected',
|
||||||
'searchable',
|
'isSearchable',
|
||||||
'className',
|
'className',
|
||||||
'placeholder',
|
'placeholder',
|
||||||
'groupName',
|
'groupName',
|
||||||
|
Loading…
Reference in New Issue
Block a user