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

PostButtonViewController

Extends:

ViewController → PostButtonViewController

Controls loading sign etc. for an action button on a post

Constructor Summary

Public Constructor
public

constructor(button: HTMLElement)

Creates for a button

Member Summary

Public Members
public set

Sets the loading state

public get
public set

Sets the loading state

public get

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(button: HTMLElement) source

Creates for a button

Override:

ViewController#constructor

Params:

NameTypeAttributeDescription
button HTMLElement

Public Members

public set isDisabled: boolean source

Sets the loading state

public get isDisabled: boolean source

public set isLoading: boolean source

Sets the loading state

public get isLoading: boolean source