APIs

Show:

Mixin for DS.Route to support work with FlexberryGroupeditComponent.

Methods

_rowAdded

(
  • componentName
  • record
)
private

Event handler for "row has been selected" event in FlexberryGroupeditComponent.

Parameters:

_rowChanged

(
  • componentName
)
private

Event handler for "model(s) corresponding to some row(s) was changed" event in FlexberryGroupeditComponent.

Parameters:

_rowDeleted

(
  • componentName
  • record
)
private

Event handler for "row has been deleted" event in FlexberryGroupeditComponent.

Parameters:

actions.groupEditRowClick

(
  • record
  • [options]
)

FlexberryGroupeditComponent row click handler. It sets modelNoRollBack to true at current controller, redirects to detail's route, save necessary data to service.

Parameters:

  • record EmberObject

    Record related to clicked table row.

  • [options] Object optional

    Record related to clicked table row.

    • saveBeforeRouteLeave Boolean

      Flag: indicates whether to save current model before going to the detail's route.

    • editOnSeparateRoute Boolean

      Flag: indicates whether to edit detail on separate route.

    • modelName String

      Clicked detail model name (used to create record if record is undefined).

    • detailArray Array

      Current detail array (used to add record to if record is undefined).

    • editFormRoute Boolean

      Path to detail's form.

activate

()

This hook is executed when the router enters the route. It is not executed when the model for the route changes.

It is used to subscribe on FlexberryGroupeditComponent events.

deactivate

()

This hook is executed when the router completely exits this route. It is not executed when the model for the route changes.

It is used to unsubscribe from FlexberryGroupeditComponent events.

newRoutePath

(
  • ordinalPath
)
String

It forms path for new model's route.

Parameters:

  • ordinalPath String

    The path to model's route.

Returns:

String:

The path to new model's route.

Properties

_groupEditEventsService

Service private

Service that triggers FlexberryGroupeditComponent events.

Default: ObjectlistviewEventsService

appState

AppStateService

Service for managing the state of the application.

flexberryDetailInteractionService

Service

Service that lets interact between agregator's and detail's form.

Default: DetailInteractionService