Merge "[1707-OS] Updated license text according to the"
[sdc.git] / catalog-ui / src / app / directives / elements / checkbox / checkbox.ts
1 'use strict';
2
3 export interface ICheckboxElementScope extends ng.IScope {
4     elemId:string;
5     text:string;
6     sdcChecklistModel:any;
7     sdcChecklistValue:string;
8     disabled:boolean;
9 }
10
11 export class CheckboxElementDirective implements ng.IDirective {
12
13     constructor(private $filter:ng.IFilterService) {
14     }
15
16     public replace = true;
17     public restrict = 'E';
18     public transclude = false;
19
20     scope = {
21         elemId: '@',
22         text: '@',
23         disabled: '=',
24         sdcChecklistModel: '=',
25         sdcChecklistValue: '=',
26         sdcChecklistChange: '&'
27     };
28
29     template = ():string => {
30         return require('./checkbox.html');
31     };
32
33     public link = (scope:ICheckboxElementScope, $elem:ng.IAugmentedJQuery, $attrs:angular.IAttributes) => {
34
35     };
36
37     public static factory = ($filter:ng.IFilterService)=> {
38         return new CheckboxElementDirective($filter);
39     };
40
41 }
42
43 CheckboxElementDirective.factory.$inject = ['$filter'];