Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EditorModel

An implementation of an editor model.

Hierarchy

  • EditorModel

Index

Constructors

constructor

Accessors

filename

  • get filename(): string
  • set filename(value: string): void
  • Get the mode for the editor filename.

    Returns string

  • Set the text for the editor filename.

    Parameters

    • value: string

    Returns void

fixedHeight

  • get fixedHeight(): boolean
  • set fixedHeight(value: boolean): void
  • Get whether the editor height should be constrained.

    Returns boolean

  • Set whether the editor height should be constrained.

    Parameters

    • value: boolean

    Returns void

lineNumbers

  • get lineNumbers(): boolean
  • set lineNumbers(value: boolean): void
  • Get the lineNumbers flag for the editor model.

    Returns boolean

  • Set the lineNumbers flag for the editor model.

    Parameters

    • value: boolean

    Returns void

mimetype

  • get mimetype(): string
  • set mimetype(value: string): void
  • Get the mode for the editor mimetype.

    Returns string

  • Set the text for the editor mimetype.

    Parameters

    • value: string

    Returns void

readOnly

  • get readOnly(): boolean
  • set readOnly(value: boolean): void
  • Get the readOnly flag for the editor model.

    Returns boolean

  • Set the readOnly flag for the editor model.

    Parameters

    • value: boolean

    Returns void

stateChanged

  • get stateChanged(): ISignal<EditorModel, IChangedArgs<any>>
  • A signal emitted when the editor model state changes.

    Notes

    This is a pure delegate to the [[stateChangedSignal]].

    Returns ISignal<EditorModel, IChangedArgs<any>>

tabSize

  • get tabSize(): number
  • set tabSize(value: number): void
  • Get the tabSize number for the editor model.

    Returns number

  • Set the tabSize number for the editor model.

    Parameters

    • value: number

    Returns void

text

  • get text(): string
  • set text(value: string): void
  • Get the text of the editor model.

    Returns string

  • Set the text on the editor model.

    Parameters

    • value: string

    Returns void

Generated using TypeDoc