ClientModelManager.RegisterFunction(String, String) Method

Register a Java Script function in a View Model

Namespace: DevExpress.ExpressApp.Mobile

Assembly: DevExpress.ExpressApp.Mobile.v18.2.dll

Declaration

public ModelFunction RegisterFunction(
    string name,
    string script
)
Public Function RegisterFunction(
    name As String,
    script As String
) As ModelFunction

Parameters

Type Name Description
String name

A string that is the name of a script to be registered.

String script

A string that is a script to be registered.

Returns

Type Description
DevExpress.ExpressApp.Mobile.MobileModel.ModelFunction

A ModelFunction object that is a script that you can use in other scripts.

See Also