Home Reference Source
import ProgressButtonController from '~/controllers/ProgressButtonController.js'
public class | source

ProgressButtonController

Extends:

ViewController → ProgressButtonController

Direct Subclass:

LoadingButtonController

Indirect Subclass:

AdminUserActionController

Sets an existing .button to progress

Constructor Summary

Public Constructor
public

constructor(saveButton: HTMLElement)

Creates a button to wrap the thing

Member Summary

Public Members
public

button: HTMLElement

public

buttonChildren: HTMLElement[]

public
public

Method Summary

Public Methods
public

setLoadingState(isLoading: Boolean)

Sets into a loading state

Inherited Summary

From class ViewController
public static

forClass(className: string, predicate: Function, root: HTMLElement)

Creates a view controller directly for all members of a class.

public static

of(elem: string | Element): ViewController

Returns a canolical VC of an element if it exists

Public Constructors

public constructor(saveButton: HTMLElement) source

Creates a button to wrap the thing

Override:

ViewController#constructor

Params:

NameTypeAttributeDescription
saveButton HTMLElement

The element with desired default children.

Public Members

public button: HTMLElement source

public buttonChildren: HTMLElement[] source

public delegate: ActionControllerDelegate source

public isLoading source

Public Methods

public setLoadingState(isLoading: Boolean) source

Sets into a loading state

Params:

NameTypeAttributeDescription
isLoading Boolean

If loading