blob: 021069241614160b1c24c5dce8e074ef60325438 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
angular.module('contactsApp')
.controller('propertyGroupCtrl', function(vCardPropertiesService) {
var ctrl = this;
ctrl.meta = vCardPropertiesService.getMeta(ctrl.name);
this.isHidden = function() {
return ctrl.meta.hasOwnProperty('hidden') && ctrl.meta.hidden === true;
};
this.getIconClass = function() {
return ctrl.meta.icon || 'icon-contacts-dark';
};
this.getInfoClass = function() {
if (ctrl.meta.hasOwnProperty('info')) {
return 'icon-info';
}
};
this.getInfoText = function() {
return ctrl.meta.info;
};
this.getReadableName = function() {
return ctrl.meta.readableName;
};
});
|