Пример #1
0
 /// <summary>
 /// Attach event-handler <code>fnFunction</code> to the 'display' event of this <code>sap.ui.core.routing.Target</code>.<br/>
 /// </summary>
 /// <param name="oData">The object, that should be passed along with the event-object when firing the event.</param>
 /// <param name="fnFunction">The function to call, when the event occurs. This function will be called on the oListener-instance (if present) or in a 'static way'.</param>
 /// <returns><code>this</code> to allow method chaining</returns>
 public extern virtual sap.ui.core.routing.Target attachDisplay(object oData, sap.ui.core.routing.Target.DisplayDelegate fnFunction);
Пример #2
0
 /// <summary>
 /// Detach event-handler <code>fnFunction</code> from the 'display' event of this <code>sap.ui.core.routing.Target</code>.<br/>
 ///
 /// The passed function and listener object must match the ones previously used for event registration.
 /// </summary>
 /// <param name="fnFunction">The function to call, when the event occurs.</param>
 /// <param name="oListener">Object on which the given function had to be called.</param>
 /// <returns><code>this</code> to allow method chaining</returns>
 public extern virtual sap.ui.core.routing.Target detachDisplay(sap.ui.core.routing.Target.DisplayDelegate fnFunction, object oListener);