LinkButton
Extends:
src/common/Component.js~Component → Button → LinkButton
Direct Subclass:
The LinkButton
component defines a Button
which links to a route.
Attrs
All of the attrs accepted by Button
, plus:
active
Whether or not the page that this button links to is currently active.href
The URL to link to. If the current URLm.route()
matches this, theactive
prop will automatically be set to true.force
Whether the page should be fully rerendered. Defaults totrue
.
Static Method Summary
Static Public Methods | ||
public static |
initAttrs(attrs: *) |
|
public static |
Determine whether a component with the given attrs is 'active'. |
Method Summary
Public Methods | ||
public |
view(vnode: *): * |
Inherited Summary
From class Button | ||
public |
view(vnode: *): * |
|
protected |
getButtonContent(children: *): * Get the template for the button's content. |
Static Public Methods
public static initAttrs(attrs: *) source
Params:
Name | Type | Attribute | Description |
attrs | * |
Public Methods
public view(vnode: *): * source
Override:
Button#viewParams:
Name | Type | Attribute | Description |
vnode | * |
Return:
* |