Suoranta.WebApp.Types Namespace
Suoranta.WebApp.View Namespace
Suoranta.WebApp - Developer API

HtmlHelperBase<(Of <(<'TModel>)>)>..::..AddJsFunction Method (String, JsStatements, JsRole, array<String>[]()[][])

Add function to view's on-page functions block

Namespace:  Suoranta.WebApp.View
Assembly:  Suoranta.WebApp (in Suoranta.WebApp.dll)

Syntax


public Symbol AddJsFunction(
	string fnName,
	JsStatements statements,
	JsRole role,
	params string[] aliases
)

Parameters

fnName
Type: String
statements
Type: Suoranta.WebApp.View.JS..::..JsStatements
role
Type: Suoranta.WebApp.View.JS..::..JsRole
aliases
Type: array<String>[]()[][]

Return Value