Skip to content

ControllerMethod

class AControllerMethod

Controller methods are used to define functions that have controller-local validity.

The call is made via the this operator.

Example: this.method1()

Controller methods can be overridden in a derived controller. In an overridden controller, the base method can be called using the SUPER operator.

Example: SUPER.baseMethod1()

Create Controller-Method

Controller methods are created in the local interface of the controller.

4l2fh1sv

Access to controller-local variables

In the controller method, access to all elements of a controller is possible.

d1li7826

Return

A controller method can define a return value.

eohy6uqu

Inheritance

Methods of a base controller can be overwritten. Overwritten methods are subsequently no longer visible in the derived controller, but can be called in the overwriting method using a SUPER object.

nxan2q0c

Controller methods as guard or as function in states

Controller methods can be used both as a function in states and as a guard.

ey4p5wva