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

MarkdownViewController

Extends:

ViewController → MarkdownViewController

Manages markdown editor

Constructor Summary

Public Constructor
public

constructor(element: HTMLTextArea, controls: MarkdownControl[])

Creates an interactive markdown editor instance.

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: HTMLTextArea, controls: MarkdownControl[]) source

Creates an interactive markdown editor instance.

Override:

ViewController#constructor

Params:

NameTypeAttributeDescription
element HTMLTextArea

.markdown element which to setup.

controls MarkdownControl[]