@datalayer/core
Version:
[](https://datalayer.io)
39 lines (38 loc) • 958 B
TypeScript
import { ReactElement } from 'react';
import { ITranslator } from '@jupyterlab/translation';
/**
* {@link RuntimeVariables} properties
*/
export interface IRuntimeVariablesProps {
/**
* Component class name
*/
className?: string;
/**
* Available kernel variables
*
* Mapping (variable name, variable type)
*/
kernelVariables?: {
[name: string]: string;
};
/**
* Kernel variables to be transferred.
*/
selectedVariables: string[];
setSelectVariable: (l: string[]) => void;
/**
* Whether to transfer the variable from the current
* to the selected kernel or not.
*/
transferVariables: boolean;
setTransferVariable: (v: boolean) => void;
/**
* Application translator
*/
translator?: ITranslator;
}
/**
* Runtime variables selector component.
*/
export declare function RuntimeVariables(props: IRuntimeVariablesProps): ReactElement;