five-on-it / apps/client/src/ui/studio/CodeEditor / CodeEditorProps
Interface: CodeEditorProps
Defined in: apps/client/src/ui/studio/CodeEditor.tsx:45
What the editor is given.
Properties
id
id:
string
Defined in: apps/client/src/ui/studio/CodeEditor.tsx:47
The element's id (studio-json); its buttons' ids add -format, -apply, -revert.
issues
issues: readonly
CodeIssue[]
Defined in: apps/client/src/ui/studio/CodeEditor.tsx:52
The issues to mark, at their paths.
readOnly
readOnly:
boolean
Defined in: apps/client/src/ui/studio/CodeEditor.tsx:50
value
value:
unknown
Defined in: apps/client/src/ui/studio/CodeEditor.tsx:49
The document as JSON.
Methods
onApply()
onApply(
value):void
Defined in: apps/client/src/ui/studio/CodeEditor.tsx:54
The document applied, parsed: a JSON object.
Parameters
value
Record<string, unknown>
Returns
void