LiveCode.Editor (livecode v0.1.0)

Copy Markdown View Source

HEEx components for LiveCode editors.

Summary

Functions

Render a textarea-backed LiveCode editor.

Functions

editor(assigns)

Render a textarea-backed LiveCode editor.

Attributes

  • id (:string) (required)
  • language (:atom) - Defaults to LiveCode.Languages.SQL.
  • value (:string) - Defaults to "".
  • context (:map) - Defaults to %{}.
  • opts (:list) - Defaults to [].
  • diagnostics (:list) - Defaults to [].
  • name (:string) - Defaults to "value".
  • form (:string) - Defaults to nil.
  • rows (:integer) - Defaults to 8.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.