Interface IObservableString

A string which can be observed for changes.

interface IObservableString {
    changed: ISignal<IObservableString, IObservableString.IChangedArgs>;
    isDisposed: boolean;
    text: string;
    type: "String";
    clear(): void;
    dispose(): void;
    insert(index: number, text: string, options?: unknown): void;
    remove(start: number, end: number, options?: unknown): void;
}

Hierarchy (View Summary)

Implemented by

Properties

A signal emitted when the string has changed.

isDisposed: boolean

Test whether the object has been disposed.

This property is always safe to access.

text: string

The value of the string.

type: "String"

The type of the Observable.

Methods

  • Insert a substring.

    Parameters

    • index: number

      The starting index.

    • text: string

      The substring to insert.

    • Optionaloptions: unknown

    Returns void

  • Remove a substring.

    Parameters

    • start: number

      The starting index.

    • end: number

      The ending index.

    • Optionaloptions: unknown

    Returns void