Defines tool / toolbar settings.

interface ToolSettings {
    keepClosedOnSelect?: boolean;
    layout?: ToolbarLayout;
    side?: ToolbarSide;
    subType?: string;
    tools?: ToolSettings[];
    type: string;
}

Properties

keepClosedOnSelect?: boolean

When clicking on a tool group the secondary toolbar is opened by default. Set this parameter to true if you would like to keep it closed.

layout?: ToolbarLayout

For the elements of top toolbar it is possible to set the layout to pop-out, which means the toolbar will be pop out from its original place to a shared dedicated secondary toolbar to save space but still keep the tools visible.

Must be provided for the root toolbar element. Tells which toolbar this configuration relates to (left or top).

subType?: string

Optionally gives an extra parameter to the type. Possible values by type:

atom: elements from periodic table, R, A, AH, Q, QH, M, MH, X, XH bond: single-bond, double-bond, triple-bond, up-wedge-bond, down-wedge-bond, wavy-bond, hashed-bond, dashed-bond, bold-bond, aromatic-bond, cis-or-trans-bond, single-or-double-bond, single-or-aromatic-bond, double-or-aromatic-bond, any-bond, cis-trans-or-unspecified-bond bracket: square-bracket, round-bracket circular-arrow: circular-arrow, circular-half-arrow elliptic-arrow: elliptic-arrow straight-arrow: single-arrow, equilibrium-arrow, unbalanced-equilibrium-arrow, rearrangement-arrow, resonance-arrow, open-arrow, dashed-arrow, crossed-arrow, hashed-arrow, retrosynthesis-arrow line: solid-line, dashed-line select: rectangle-select, lasso-select template: benzene, cyclohexane, cyclopentane, cyclobutane, cyclopropane, cyclohexane-chair1, cyclohexane-chair2, cycloheptane, cyclooctane, cyclopentadiene style: fonts group: fontFamily, fontSize fontFaces group: bold, italic, underline textScript grroup: superscript, subscript, formula textSymbols grop: symbol colorsAndLineWeight group: textColor, highlightColor, lineColor, fillColor, lineWeight text-align: alignLeft, alignCenter, alignRight

tools?: ToolSettings[]

Tool settings object denotes a toolbar setting if this member given. Lists further tools/toolbars this toolbar must accomodate.

type: string

Type and optional subType together identifies the feature that this tool is a shortcut for. Allowed values are:

Left Toolbar: select, erase, bonds (group), chain, templates (group), atoms (group), atom, periodic-table, (whenever atoms tool group defined make sure that periodic table is its last item) markush (group), rgdef, rgroup-attachment, variable-attachment, atoms-query (group), increase-charge, decrease-charge, bordersAndLines (group), rectangle, ellipse, line brackets (group), bracket arrows (group), straight-arrow, circular-arrow, elliptic-arrow, plus, reactionmap, add-radical, text, picture, color, scribble, separator

Top Toolbar: smart-select, clean, aromatize, stereo, crop, fonts (group), fontFaces (group), textScript (group), textSymbols (group), colorsAndLineWeight (group), textAlign (group), search, separator

Generated using TypeDoc