Home Reference Source
import ProgressDialog from '@osjs/dialogs/src/dialogs/progress.js'
public class | source

ProgressDialog

Extends:

Dialog → ProgressDialog

Default OS.js Progress Dialog

Constructor Summary

Public Constructor
public

constructor(core: Core, args: Object, callback: Function)

Constructor

Method Summary

Public Methods
public

Set the progress value

public

setStatus(status: String)

Set the status text

Inherited Summary

From class Dialog
public

Gets the button (virtual) DOM elements

public

createView(children: Object[], state: Object): Object

Creates the default view

public

Destroys the dialog

public

emitCallback(name: String, ev: Event, close: Boolean)

Emits the callback

public

Gets the first negative button

public

Gets the first positive button

public

getValue(): *

Gets the dialog result value

public
public

render(cb: Function): *

Renders the dialog

Public Constructors

public constructor(core: Core, args: Object, callback: Function) source

Constructor

Override:

Dialog#constructor

Params:

NameTypeAttributeDescription
core Core

OS.js Core reference

args Object

Arguments given from service creation

args.title String
  • optional

Dialog title

args.message String
  • optional

Dialog message

args.status String
  • optional

Dialog status message

args.progress String
  • optional

Initial progress value

args.buttons String[]
  • optional

Override dialog buttons

callback Function

The callback function

Public Methods

public setProgress(value: Number) source

Set the progress value

Params:

NameTypeAttributeDescription
value Number

A value between 0 and 100

public setStatus(status: String) source

Set the status text

Params:

NameTypeAttributeDescription
status String

Status text