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

DeleteCommentViewController

Extends:

ViewController → DeleteCommentViewController

Deletes a comment

Constructor Summary

Public Constructor
public

constructor(trigger: HTMLElement, commentController: CommentViewController)

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

async trigger()

Triggers the delete process.

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(trigger: HTMLElement, commentController: CommentViewController) source

Override:

ViewController#constructor

Params:

NameTypeAttributeDescription
trigger HTMLElement

The delete button trigger

commentController CommentViewController

Public Members

public commentController: CommentViewController source

public swappingController source

Public Methods

public async trigger() source

Triggers the delete process.