|
DataContextRenderViewModelConfigurationTModel(RecordOperationsCache, Object, String, String, String, Object) Method
|
Renders client-side configuration script for paged view model.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax Public Function RenderViewModelConfiguration(Of TModel As {Class, New}) (
cache As RecordOperationsCache,
viewBag As Object,
Optional defaultSortField As String = Nothing,
Optional hubClassName As String = "GSF.Web.Security.SecurityHub",
Optional hubScriptName As String = "securityHub",
ParamArray parentKeys As Object()
) As String
public:
generic<typename TModel>
where TModel : ref class, gcnew()
String^ RenderViewModelConfiguration(
RecordOperationsCache^ cache,
Object^ viewBag,
String^ defaultSortField = nullptr,
String^ hubClassName = L"GSF.Web.Security.SecurityHub",
String^ hubScriptName = L"securityHub",
... array<Object^>^ parentKeys
)
member RenderViewModelConfiguration :
cache : RecordOperationsCache *
viewBag : Object *
?defaultSortField : string *
?hubClassName : string *
?hubScriptName : string *
parentKeys : Object[]
(* Defaults:
let _defaultSortField = defaultArg defaultSortField null
let _hubClassName = defaultArg hubClassName "GSF.Web.Security.SecurityHub"
let _hubScriptName = defaultArg hubScriptName "securityHub"
*)
-> string when 'TModel : not struct, new()
JavaScript does not support generic types or methods.
View SourceParameters
- cache RecordOperationsCache
- Data hub record operations cache.
- viewBag Object
- ViewBag for the view.
- defaultSortField String (Optional)
- Default sort field name, defaults to first primary key field. Prefix field name with a minus, i.e., '-', to default to descending sort.
- hubClassName String (Optional)
- Full class name of hub instance, defaults to "GSF.Web.Security.SecurityHub".
- hubScriptName String (Optional)
- Javascript hub name, defaults to "securityHub".
- parentKeys Object
- Primary keys values of the parent record to load.
Type Parameters
- TModel
- Modeled database table (or view).
Return Value
StringRendered paged view model configuration script.
See Also