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

CommentViewController

Extends:

ViewController → CommentViewController

Why be smart and use a view controller when you can make your code look like you use React

Constructor Summary

Public Constructor
public

constructor(element: HTMLElement, comment: Comment)

Create comment given element use CommentTemplate and get node.

Member Summary

Public Members
public
public

commentNode: HTMLElement

Node wrapping comment

public

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(element: HTMLElement, comment: Comment) source

Create comment given element use CommentTemplate and get node.

Override:

ViewController#constructor

Params:

NameTypeAttributeDescription
element HTMLElement
comment Comment

The current comment

Public Members

public comment: Comment source

public commentNode: HTMLElement source

Node wrapping comment

public subCommentList source