mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			18 lines
		
	
	
		
			599 B
		
	
	
	
		
			TypeScript
		
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			599 B
		
	
	
	
		
			TypeScript
		
	
	
	
| import React from 'react';
 | |
| 
 | |
| import { DataLink, DataLinksFieldConfigSettings, StandardEditorProps, VariableSuggestionsScope } from '@grafana/data';
 | |
| import { DataLinksInlineEditor } from '@grafana/ui';
 | |
| 
 | |
| type Props = StandardEditorProps<DataLink[], DataLinksFieldConfigSettings>;
 | |
| 
 | |
| export const DataLinksValueEditor = ({ value, onChange, context }: Props) => {
 | |
|   return (
 | |
|     <DataLinksInlineEditor
 | |
|       links={value}
 | |
|       onChange={onChange}
 | |
|       data={context.data}
 | |
|       getSuggestions={() => (context.getSuggestions ? context.getSuggestions(VariableSuggestionsScope.Values) : [])}
 | |
|     />
 | |
|   );
 | |
| };
 |