Reference Source
import Link from 'flarum/components/Link'
public class | source

Link

Extends:

src/common/Component.js~Component → Link

The link component enables both internal and external links. It will return a regular HTML link for any links to external sites, and it will use Mithril's m.route.Link for any internal links.

Links will default to internal; the 'external' attr must be set to true for the link to be external.

Method Summary

Public Methods
public

view(vnode: *): *

Public Methods

public view(vnode: *): * source

Params:

NameTypeAttributeDescription
vnode *

Return:

*