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

Dom<(Of <(<'TPageModel>)>)>..::..ActionParam<(Of <(<'TController, TParam>)>)> Method (ControllerAction<(Of <(<'TParam>)>)>, 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, TParam>(
	ControllerAction<TParam> selector,
	Dom..::..Element bindTo
)
where TController : Controller, Controller

Type Parameters

TController
TParam

Parameters

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

Return Value

Name of the added JS function