Interface IAttachmentsModel

The model for attachments.

Hierarchy

Implemented by

Properties

A signal emitted when the model changes.

The attachment content factory used by the model.

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

keys: readonly string[]

The keys of the attachments in the model.

length: number

The length of the items in the model.

remove: ((key) => void)

Type declaration

    • (key): void
    • Remove the attachment whose name is the specified key. Note that this is optional only until Jupyterlab 2.0 release.

      Parameters

      • key: string

      Returns void

stateChanged: ISignal<IAttachmentsModel, void>

A signal emitted when the model state changes.

Methods

  • Clear all of the attachments.

    Returns void

  • Dispose of the resources held by the object.

    Notes

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    Undefined Behavior

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void

  • Deserialize the model from JSON.

    Notes

    This will clear any existing data.

    Parameters

    Returns void

  • Get an item for the specified key.

    Parameters

    • key: string

    Returns IAttachmentModel

  • Whether the specified key is set.

    Parameters

    • key: string

    Returns boolean

  • Set the value of the specified key.

    Parameters

    Returns void

  • Serialize the model to JSON.

    Returns IAttachments

Generated using TypeDoc