angular.module("app").directive("conditionsGrid", function($rootScope, $timeout, SQEvents, SQConstants) {
    return {
        restrict: 'E',
        replace: true,
        templateUrl: "../app/directives/conditionsGrid/conditionsGrid.html",
        scope: {
            instance: '=',
            afterInit: '=',
            onRefresh: '=',     //grid content has been refreshed, arguments: grid instance 
            onEdit: '=',        //left or right value has been clicked to edit, arguments passed: $scope.conditionDetails, lastRowIndex, lastColIndex
            autoHeight: '=',
            name: '=',
            customId: '@'
        },
        controller: 'ConditionsGridCtrl'
    };
});