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

CategoryListViewController

Extends:

ViewController → CategoryListViewController

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

addTag(name: string)

Creates tag with a name

public

popTag()

Removes the last tag

public

removeTag(name: string)

Removes a tag.

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() source

Override:

ViewController#constructor

Public Methods

public addTag(name: string) source

Creates tag with a name

Params:

NameTypeAttributeDescription
name string

Name of the tag.

public popTag() source

Removes the last tag

public removeTag(name: string) source

Removes a tag. Silent if fails

Params:

NameTypeAttributeDescription
name string

The name of the tag to remove.