blob: ec0be8ab07efc4d679c217c1b0b895c27fac600c (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
'use strict';
export interface ICheckboxElementScope extends ng.IScope {
elemId:string;
text:string;
sdcChecklistModel:any;
sdcChecklistValue:string;
disabled:boolean;
}
export class CheckboxElementDirective implements ng.IDirective {
constructor(private $filter:ng.IFilterService) {
}
public replace = true;
public restrict = 'E';
public transclude = false;
scope = {
elemId: '@',
text: '@',
disabled: '=',
sdcChecklistModel: '=',
sdcChecklistValue: '=',
sdcChecklistChange: '&'
};
template = ():string => {
return require('./checkbox.html');
};
public link = (scope:ICheckboxElementScope, $elem:ng.IAugmentedJQuery, $attrs:angular.IAttributes) => {
};
public static factory = ($filter:ng.IFilterService)=> {
return new CheckboxElementDirective($filter);
};
}
CheckboxElementDirective.factory.$inject = ['$filter'];
|