Expand all

abstract CodeMirrorPanel

Abstract class for a panel that can be used with CodeMirror. This class provides methods to create CSS-only Codex components.

Constructor

new CodeMirrorPanel()abstract #

Source:
See:
To do:
  • Move HTML generation to Mustache templates.

Properties

extension :Extensionabstract #

Get the panel and any associated keymaps as a CodeMirror Extension.

Type:

Source:
Get the panel and any associated keymaps as a CodeMirror Extension.

panel :Panelabstract #

Get the Panel object.

Type:

Source:
Get the Panel object.

Methods

getButton(label, [icon], [iconOnly]) → {HTMLButtonElement} #

Get a CSS-only Codex Button.

Parameters:

Name Type Attributes Default Description
label string
icon string | null optional
null
iconOnly boolean optional
false
Source:

Returns:

Type
HTMLButtonElement
Get a CSS-only Codex Button.

getCheckbox(name, label, [checked]) → {Array.<HTMLElement>} #

Get a CSS-only Codex Checkbox.

Parameters:

Name Type Attributes Default Description
name string
label string
checked boolean optional
false
Source:

Returns:

[HTMLSpanElement, HTMLInputElement]

Type
Array.<HTMLElement>
Get a CSS-only Codex Checkbox.

getFieldset(legendText, …fields) → {Element} #

Get a CSS-only Codex Fieldset.

Parameters:

Name Type Attributes Description
legendText string
fields Array.<HTMLElement> repeatable
Source:

Returns:

Type
Element
Get a CSS-only Codex Fieldset.

getTextInput(name, [value], placeholder) → {Array.<HTMLElement>} #

Get a CSS-only Codex TextInput.

Parameters:

Name Type Attributes Default Description
name string
value string optional
''
placeholder string
Source:

Returns:

[HTMLDivElement, HTMLInputElement]

Type
Array.<HTMLElement>
Get a CSS-only Codex TextInput.

getToggleButton(name, label, icon, [checked]) → {HTMLButtonElement} #

Get a CSS-only Codex ToggleButton.

Parameters:

Name Type Attributes Default Description
name string
label string
icon string
checked boolean optional
false
Source:

Returns:

Type
HTMLButtonElement
Get a CSS-only Codex ToggleButton.