API Docs for:
Show:

exposeButtonMixin Class

Module: views.services
Parent Module: views

Methods

_exposeServiceCallback

(
  • ev
)
Undefined

Callback called when the backend returns a response to a service expose call. Update the service model instance or, if an error occurred, add a failure notification.

Parameters:

  • ev Object

    An event object (with "err" and "service_name" attributes).

Returns:

Undefined: Nothing.

_unexposeServiceCallback

(
  • ev
)
Undefined

Callback called when the backend returns a response to a service unexpose call. Update the service model instance or, if an error occurred, add a failure notification.

Parameters:

  • ev Object

    An event object (with "err" and "service_name" attributes).

Returns:

Undefined: Nothing.

exposeService

() Undefined

Expose the service stored in this view. Pass this._exposeServiceCallback as callback to be called when the response is returned by the backend.

Returns:

Undefined: Nothing.

unexposeService

() Undefined

Unexpose the service stored in this view. Pass this._unexposeServiceCallback as callback to be called when the response is returned by the backend.

Returns:

Undefined: Nothing.