import QueueItem from 'beloader/src/queueitem.js'QueueItem
Extends:
QueueItem handles all item behaviours in the loading queue. Given its type and options, it will load the appropriate loader and process request.
Constructor Summary
| Public Constructor | ||
| public | 
       constructor(type: string, parent: Beloader, options: DotObjectArray)  | 
    version 1.0.0 since 1.0.0 | 
Member Summary
| Public Members | ||
| public | 
      
       Async mode trigger  | 
    |
| public | 
      
       Autoprocess trigger  | 
    |
| public | 
      
       Awaiting mode, dependencies listing  | 
    |
| public | 
      
       Defer mode trigger  | 
    |
| public | 
       error: *  | 
    |
| public | 
      
       Id of the item  | 
    |
| public | 
      
       Loader instance  | 
    since 1.0.0 | 
| public | 
      
       Loader ready promise  | 
    since 1.0.0 | 
| public | 
      
       Requesting parent item  | 
    since 1.0.0 | 
| public | 
      
       Stores item progress  | 
    since 1.0.0 | 
| public | 
      
       Item process promise  | 
    since 1.0.0 | 
| public | 
      
       Stores the state of the item  | 
    since 1.0.0 | 
| Private Members | ||
| private | 
      
       Map plugins  | 
    since 1.0.0 | 
Method Summary
| Public Methods | ||
| public | 
       process(): * Process the request for the QueueItem  | 
    version 1.0.0 since 1.0.0 | 
| Private Methods | ||
| private | 
       _abort() abort built-in callback  | 
    version 1.0.0 since 1.0.0 | 
| private | 
       _error(ev: *) error built-in callback  | 
    version 1.0.0 since 1.0.0 | 
| private | 
       _load() load built-in callback  | 
    version 1.0.0 since 1.0.0 | 
| private | 
       _loadend() loadend built-in callback  | 
    version 1.0.0 since 1.0.0 | 
| private | 
      
       loadstart built-in callback  | 
    version 1.0.0 since 1.0.0 | 
| private | 
       _progress(event: *) progress built-in callback  | 
    version 1.0.0 since 1.0.0 | 
| private | 
       _ready() ready built-in callback  | 
    version 1.0.0 since 1.0.0 | 
| private | 
       _timeout() timeout built-in callback  | 
    version 1.0.0 since 1.0.0 | 
Inherited Summary
| From class AbstractEventManager | ||
| private | 
      
       Callback's list by eventName  | 
    since 1.0.0 | 
| public | 
       fire(eventName: string, target: Beloader | QueueItem | Loader | Plugin, data: object | array | number | string) Fire an event  | 
    version 1.0.0 since 1.0.0 | 
| public | 
      
       Register events callbacks after instance creation  | 
    version 1.0.0 since 1.0.0 | 
| private | 
       _dispatch(event: BeloaderEvent) Dispatch an event  | 
    version 1.0.0 since 1.0.0 | 
Public Constructors
public constructor(type: string, parent: Beloader, options: DotObjectArray) version 1.0.0 since 1.0.0 source
Constructor
Override:
AbstractEventManager#constructorParams:
| Name | Type | Attribute | Description | 
| type | string | Type of item. See Beloader#fetch  | 
    |
| parent | Beloader | Beloader calling instance  | 
    |
| options | DotObjectArray | Options for QueueItem and underlying loader  | 
    
Public Members
public error: * source
public state: Object since 1.0.0 source
Stores the state of the item
Properties:
| Name | Type | Attribute | Description | 
| state.waiting | boolean | 
  | 
    |
| state.pending | boolean | 
  | 
    |
| state.loaded | boolean | 
  | 
    |
| state.error | boolean | 
  | 
    |
| state.abort | boolean | 
  | 
    |
| state.timeout | boolean | 
  | 
    |
| state.processed | boolean | 
  | 
    |
| state.resolved | boolean | 
  | 
    |
| state.ready | boolean | 
  | 
    
Private Members
Public Methods
public process(): * version 1.0.0 since 1.0.0 source
Process the request for the QueueItem
Return:
| * | 
Private Methods
private _error(ev: *) version 1.0.0 since 1.0.0 source
error built-in callback
Params:
| Name | Type | Attribute | Description | 
| ev | * | 
private _progress(event: *) version 1.0.0 since 1.0.0 source
progress built-in callback
Params:
| Name | Type | Attribute | Description | 
| event | * | 
  Manual
  Reference
  Source
  Test
  
    
  