@datalayer/core
Version:
[](https://datalayer.io)
43 lines (42 loc) • 982 B
TypeScript
import { CodeCellModel } from '@jupyterlab/cells';
import type { IMarkdownParser, IRenderMime } from '@jupyterlab/rendermime';
import { ITranslator } from '@jupyterlab/translation';
import type { ISnippet } from '../../models';
/**
* {@link SnippetDialog} properties
*/
export interface ISnippetDialogProps {
/**
* Code cell model
*/
model: CodeCellModel;
/**
* Callback request the dialog closure.
*/
onClose: () => void;
/**
* Code snippets language
*/
language: string;
/**
* Code snippets
*/
snippets: ISnippet[];
/**
* Markdown parser
*/
markdownParser?: IMarkdownParser;
/**
* HTML sanitizer
*/
sanitizer?: IRenderMime.ISanitizer;
/**
* Application translator
*/
translator?: ITranslator;
}
/**
* Dialog to inject snippet in a cell.
*/
export declare function SnippetDialog(props: ISnippetDialogProps): JSX.Element;
export default SnippetDialog;