Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOptions

An options object for initializing a widget. The options used to initialize a code editor widget.

Hierarchy

  • IOptions

Index

Properties

Optional config

config: Partial<IConfig>

The configuration options for the editor.

factory

factory: Factory

A code editor factory.

Notes

The widget needs a factory and a model instead of a CodeEditor.IEditor object because it needs to provide its own node as the host.

model

model: IModel

The model used to initialize the code editor.

Optional node

node: HTMLElement

The optional node to use for the widget.

If a node is provided, the widget will assume full ownership and control of the node, as if it had created the node itself.

The default is a new <div>.

Optional selectionStyle

selectionStyle: ISelectionStyle

The default selection style for the editor.

Optional updateOnShow

updateOnShow: boolean

Whether to send an update request to the editor when it is shown.

Optional uuid

uuid: string

The desired uuid for the editor.

Generated using TypeDoc