Skip to content

Parameters not working in my implementation for jsme-react #4

Open
@mwbouwkamp

Description

@mwbouwkamp

I have the following implementation of jsme-react. Settings are working nicely (these are passed in as props), but the guicolor is not set. I probably implemented it incorrectly. Hope you can help.

import React, { createElement } from "react";
import { Jsme } from "jsme-react";

interface Props {
    settings: string;
    smiles: string;
    onStructureChange: (smiles: string) => void;
}

export const JSMEMain: React.FC<Props> = props => {
    return (
        <div>
            <Jsme
                height="300px"
                width="400px"
                options={props.settings}
                guicolor="#FF0000"
                smiles={props.smiles}
                onChange={props.onStructureChange}
            />
        </div>
    );
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions