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.
view :EditorView
#
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.