Description

Ranting in ember applications are inherit from base class Ember.Route.

Technology implemented for the base of ranting:

Typical technology Ember of ranting and see this article.

Applied to the router must specify the name editable models (property modelName) and the name of the views (property modelProjection).

Ranting on list forms

Routh list form is as follows. It derives from a certain technology can get list-form.

import ListFormRoute from 'ember-flexberry/routes/list-form';

export default ListFormRoute.extend({
  modelName: 'employee',
  modelProjection: 'EmployeeL'
});

Ranting to edit forms

Routh edit form is as follows. It derives from a certain technology can get edit-form.

import EditFormRoute from 'ember-flexberry/routes/edit-form';

export default EditFormRoute.extend({
  modelProjection: 'EmployeeE',
  modelName: 'employee'
});

Ranting for forms creation

Route for form is as follows. It derives from a certain technology can get edit-form-new.

import EditFormNewRoute from 'ember-flexberry/routes/edit-form-new';

export default EditFormNewRoute.extend({
  modelProjection: 'EmployeeE',
  modelName: 'employee'
});
Переведено сервисом «Яндекс.Переводчик» http://translate.yandex.ru