Version: v0.7.0 - Beta.  We welcome contributors & feedback.

Web.postLink

Web.postLink($label, $actionUrl, $dataMap, $class = '') -> HtmlString

Description

Create a link that submits POST form data via hidden form fields, without the use of Ajax.

Parameter Description
$label Text label of the button.
$actionUrl URL of the form action.
$dataMap A Map of input params.
$class (optional) CSS class of the button element.
tm editLinkHtml {
    {{ Web.postLink('Edit', url'/comment/edit', { id: 123 }) }}
}

See Also