Report an issue
Class

CKEDITOR.plugins.notificationAggregator.task

classsince 4.5.0

Overview

This type represents a single task in the aggregator, and exposes methods to manipulate its state.

Weights

Task progess is based on its weight.

As you create a task, you need to declare its weight. As you want the update to inform about the progress, you will need to update the task, telling how much of this weight is done.

For example, if you declare that your task has a weight that equals 50 and then call update with 10, you will end up with telling that the task is done in 20%.

Example Usage of Weights

Let us say that you use tasks for file uploading.

A single task is associated with a single file upload. You can use the file size in bytes as a weight, and then as the file upload progresses you just call the update method with the number of bytes actually downloaded.

Filtering

Properties

  • private

    _doneWeight : Number

    Done weight of the task.

    Defaults to 0

  • private

    _isCanceled : Boolean

    Indicates when the task is canceled.

    Defaults to false

  • private

    _weight : Number

    Total weight of the task.

Static properties

Methods