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 {
|
||||
onChange: (value: string) => void;
|
||||
options: any[];
|
||||
searchable: boolean;
|
||||
isSearchable: boolean;
|
||||
selected: string;
|
||||
placeholder?: string;
|
||||
className?: string;
|
||||
@ -74,7 +74,7 @@ export class StackdriverPicker extends React.Component<Props, State> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { placeholder, className, searchable, onChange } = this.props;
|
||||
const { placeholder, className, isSearchable, onChange } = this.props;
|
||||
const { options } = this.state;
|
||||
const selectedOption = this.getSelectedOption();
|
||||
|
||||
@ -86,7 +86,7 @@ export class StackdriverPicker extends React.Component<Props, State> {
|
||||
backspaceRemovesValue={false}
|
||||
onChange={item => onChange(item.value)}
|
||||
options={options}
|
||||
isSearchable={searchable}
|
||||
isSearchable={isSearchable}
|
||||
maxMenuHeight={500}
|
||||
placeholder={placeholder}
|
||||
noOptionsMessage={() => 'No options found'}
|
||||
|
@ -5,7 +5,7 @@
|
||||
onChange="ctrl.handleAggregationChange"
|
||||
selected="ctrl.target.aggregation.crossSeriesReducer"
|
||||
options="ctrl.aggOptions"
|
||||
searchable="true"
|
||||
is-searchable="true"
|
||||
placeholder="'Select Aggregation'"
|
||||
className="'width-15'"
|
||||
template-variables="ctrl.templateSrv.variables"
|
||||
@ -28,7 +28,7 @@
|
||||
onChange="ctrl.handleAlignmentChange"
|
||||
selected="ctrl.target.aggregation.perSeriesAligner"
|
||||
options="ctrl.alignOptions"
|
||||
searchable="true"
|
||||
is-searchable="true"
|
||||
placeholder="'Select Alignment'"
|
||||
className="'width-15'"
|
||||
template-variables="ctrl.templateSrv.variables"
|
||||
@ -45,7 +45,7 @@
|
||||
onChange="ctrl.handleAlignmentPeriodChange"
|
||||
selected="ctrl.target.aggregation.alignmentPeriod"
|
||||
options="ctrl.alignmentPeriods"
|
||||
searchable="true"
|
||||
is-searchable="true"
|
||||
placeholder="'Select Alignment'"
|
||||
className="'width-15'"
|
||||
template-variables="ctrl.templateSrv.variables"
|
||||
|
@ -5,7 +5,7 @@
|
||||
onChange="ctrl.handleServiceChange"
|
||||
selected="ctrl.target.service"
|
||||
options="ctrl.services"
|
||||
searchable="false"
|
||||
is-searchable="false"
|
||||
placeholder="'Select Services'"
|
||||
className="'width-15'"
|
||||
></stackdriver-picker>
|
||||
@ -21,7 +21,7 @@
|
||||
options="ctrl.getMetricsList()"
|
||||
template-variables="ctrl.templateSrv.variables"
|
||||
group-name="'Metric Types'"
|
||||
searchable="true"
|
||||
is-searchable="true"
|
||||
placeholder="'Select Metric'"
|
||||
className="'width-15'"
|
||||
></stackdriver-picker>
|
||||
|
@ -67,7 +67,7 @@ export class StackdriverQueryCtrl extends QueryCtrl {
|
||||
'options',
|
||||
'onChange',
|
||||
'selected',
|
||||
'searchable',
|
||||
'isSearchable',
|
||||
'className',
|
||||
'placeholder',
|
||||
'groupName',
|
||||
|
Loading…
Reference in New Issue
Block a user