Skip to content

components/common/KetcherEditor#

KetcherEditor()#

function KetcherEditor(props): Element;

Renders in whichever window it is mounted in; inside a popout it runs in an iframe.

Parameters#

Parameter Type
props KetcherEditorProps

Returns#

Element


KetcherEditorProps#

Properties#

height#

height: string | number;

molBlock?#

optional molBlock?: string;

Loaded in preference to smiles; unlike SMILES it carries coordinates and wedge stereo.

onChange?#

optional onChange?: (smiles) => void;
Parameters#
Parameter Type
smiles string
Returns#

void

onChangeStructure?#

optional onChangeStructure?: (structure) => void;
Parameters#
Parameter Type
structure { molBlock: string; smiles: string; }
structure.molBlock string
structure.smiles string
Returns#

void

smiles?#

optional smiles?: string;

width#

width: string | number;