Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AttachmentsModel

The default implementation of the IAttachmentsModel.

Hierarchy

  • AttachmentsModel

Implements

Index

Constructors

constructor

  • Construct a new observable outputs instance.

    Parameters

    Returns AttachmentsModel

Properties

Private _changeGuard

_changeGuard: any

Private _changed

_changed: any

Private _createItem

_createItem: any

Create an attachment item and hook up its signals.

Private _isDisposed

_isDisposed: any

Private _map

_map: any

Private _modelDB

_modelDB: any

Private _onGenericChange

_onGenericChange: any

Handle a change to an item.

Private _onMapChanged

_onMapChanged: any

Handle a change to the list.

Private _onSerializedChanged

_onSerializedChanged: any

If the serialized version of the outputs have changed due to a remote action, then update the model accordingly.

Private _serialized

_serialized: any

Private _stateChanged

_stateChanged: any

Readonly contentFactory

contentFactory: IContentFactory

The attachment content factory used by the model.

Accessors

changed

isDisposed

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

    Returns boolean

keys

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

    Returns readonly string[]

length

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

    Returns number

stateChanged

Methods

clear

  • clear(): void
  • Clear all of the attachments.

    Returns void

dispose

  • dispose(): void
  • Dispose of the resources used by the model.

    Returns void

fromJSON

get

has

  • has(key: string): boolean
  • Whether the specified key is set.

    Parameters

    • key: string

    Returns boolean

remove

  • remove(key: string): void
  • Remove the attachment whose name is the specified key

    Parameters

    • key: string

    Returns void

set

  • Set the value at the specified key.

    Parameters

    Returns void

toJSON

Generated using TypeDoc