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

Dom<(Of <(<'TPageModel>)>)>..::..ActionParam<(Of <(<'TController>)>)> Method (Expression<(Of <(<'Func<(Of <(<'TController, ControllerAction>)>)>>)>)>, Element)

Add on the page JavaScript that returns JS object containing POST parameters for controller action.

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

Syntax


public Symbol ActionParam<TController>(
	Expression<Func<TController, ControllerAction>> selector,
	Dom..::..Element bindTo
)
where TController : Controller, Controller

Type Parameters

TController

Parameters

selector
Type: Expression<(Of <(<'Func<(Of <(<'TController, ControllerAction>)>)>>)>)>
bindTo
Type: Suoranta.WebApp.View..::..Dom..::..Element
HTML element from which the function retrieves the value

Return Value

Name of the added JS function