diff --git a/src/ui/public/check_box/check_box.html b/src/ui/public/check_box/check_box.html new file mode 100644 index 00000000000000..a9c7e904c5aa6b --- /dev/null +++ b/src/ui/public/check_box/check_box.html @@ -0,0 +1,6 @@ + diff --git a/src/ui/public/check_box/check_box.js b/src/ui/public/check_box/check_box.js new file mode 100644 index 00000000000000..2048622dcf1aae --- /dev/null +++ b/src/ui/public/check_box/check_box.js @@ -0,0 +1,21 @@ +import { uiModules } from 'ui/modules'; +import template from './check_box.html'; + +const app = uiModules.get('kibana'); + +app.directive('checkBox', function () { + return { + restrict: 'E', + replace: true, + template, + scope: { + id: '=', + isSelected: '=', + onSelectChange: '=', + }, + controllerAs: 'checkBox', + bindToController: true, + controller: class CheckBoxController { + } + }; +}); diff --git a/src/ui/public/check_box/index.js b/src/ui/public/check_box/index.js new file mode 100644 index 00000000000000..54c21f29fb655d --- /dev/null +++ b/src/ui/public/check_box/index.js @@ -0,0 +1 @@ +import './check_box';