SmartIT_Extensions/BMC/smart-it-full-helix/scripts/app/admin/screen-configuration/field-item-directive.js

45 lines
1.5 KiB
JavaScript

"use strict";
/**
* Created by srramamu on 28-06-2017.
*/
(function () {
'use strict';
angular.module('myitsmApp')
.directive('fieldItem', [function () {
return {
restrict: 'E',
replace: true,
templateUrl: 'views/admin/screen-configuration/field-item.html',
scope: {
field: '=',
pfield: '=?',
isGroupField: '=',
onExpandFieldClick: '=',
onRemoveFieldClick: '=?',
onRemoveFieldClickFromGroup: '=?',
onRequiredPropertyChange: '=',
onEditablePropertyChange: '=',
checkDiffValue: '=',
setDiffValueFieldonBlur: '=',
getDependencyFieldWarn: '=',
tooltipPosition: '=',
updateDiffValueField: '=',
diffFields: '=',
associatedActionLists: '=',
onAssociatedActionPropertyChange: '=',
icons: '=',
onSelectIcon: '=',
screenName: '='
}, link: function (scope) {
scope.selectIconOptions = [{
name: '@',
value: 0
}, {
name: '&',
value: 1
}];
}
};
}]);
}());