Interface CodePartRendererAction

The CodePartRenderer offers to contribute arbitrary React nodes to the rendered code part. Technically anything can be rendered, however it is intended to be used for actions, like "Copy to Clipboard" or "Insert at Cursor".

interface CodePartRendererAction {
    priority: number;
    canRender?(response, parentNode): boolean;
    render(response, parentNode): ReactNode;
}

Implemented by

Properties

Methods

Properties

priority: number

The priority determines the order in which the actions are rendered. The default priorities are 10 and 20.

Methods