Class ObservableString

A concrete implementation of [[IObservableString]]

Hierarchy

  • ObservableString

Implements

Constructors

  • Construct a new observable string.

    Parameters

    • Optional initialText: string

    Returns ObservableString

Properties

_changed: any
_isDisposed: any
_text: any

Accessors

  • get isDisposed(): boolean
  • Test whether the string has been disposed.

    Returns boolean

  • get text(): string
  • Get the value of the string.

    Returns string

  • set text(value): void
  • Set the value of the string.

    Parameters

    • value: string

    Returns void

  • get type(): "String"
  • The type of the Observable.

    Returns "String"

Methods

  • Set the ObservableString to an empty string.

    Returns void

  • Dispose of the resources held by the string.

    Returns void

  • Insert a substring.

    Parameters

    • index: number

      The starting index.

    • text: string

      The substring to insert.

    Returns void

  • Remove a substring.

    Parameters

    • start: number

      The starting index.

    • end: number

      The ending index.

    Returns void

Generated using TypeDoc