Class AttachmentsModel

The default implementation of the IAttachmentsModel.

Hierarchy

  • AttachmentsModel

Implements

Constructors

Properties

_changeGuard: any
_changed: any
_createItem: any

Create an attachment item and hook up its signals.

_isDisposed: any
_map: any
_onGenericChange: any

Handle a change to an item.

_onMapChanged: any

Handle a change to the list.

_serialized: any
_stateChanged: any

The attachment content factory used by the model.

Accessors

  • get isDisposed(): boolean
  • Test whether the model is disposed.

    Returns boolean

  • get keys(): readonly string[]
  • The keys of the attachments in the model.

    Returns readonly string[]

  • get length(): number
  • Get the length of the items in the model.

    Returns number

Methods

  • Clear all of the attachments.

    Returns void

  • Dispose of the resources used by the model.

    Returns void

  • Deserialize the model from JSON.

    Notes

    This will clear any existing data.

    Parameters

    Returns void

  • Whether the specified key is set.

    Parameters

    • key: string

    Returns boolean

  • Remove the attachment whose name is the specified key

    Parameters

    • key: string

    Returns void

  • Set the value at the specified key.

    Parameters

    Returns void

Generated using TypeDoc