import ModelComponent from '../model.component';
import {GRID_NAME, ROW_NAME} from '@grid/view/definition';
import{TemplatePath} from '@grid/core/template';

TemplatePath
	.register(ROW_NAME, template => {
		return {
			model: 'body',
			resource: '$row.details'
		};
	});

class Row extends ModelComponent {
	constructor() {
		super('row');
	}
}

Row.$inject = [];

export default {
	require: {
		root: `^^${GRID_NAME}`
	},
	controller: Row,
	bindings: {
		rowMode: '@mode',
		rowUnit: '@unit'
	}
};
import ModelComponent from '../model.component';
import {GRID_NAME, ROW_NAME} from '@grid/view/definition';
import{TemplatePath} from '@grid/core/template';

TemplatePath
	.register(ROW_NAME, () => {
		return {
			model: 'body',
			resource: '$row.details'
		};
	});

class Row extends ModelComponent {
	constructor() {
		super('row');
	}
}

Row.$inject = [];

export default {
	require: {
		root: `^^${GRID_NAME}`
	},
	controller: Row,
	bindings: {
		rowMode: '@mode',
		rowUnit: '@unit'
	}
};
remove unused var