diff --git a/src/ovh-ui-angular/controllers/index.js b/src/ovh-ui-angular/controllers/index.js index 57097c3..95e4b3f 100644 --- a/src/ovh-ui-angular/controllers/index.js +++ b/src/ovh-ui-angular/controllers/index.js @@ -14,6 +14,7 @@ import searchController from "./search.controller"; import selectController from "./select.controller"; import showCurrentValueInPopupController from "./show-current-value-in-popup.controller"; import stepperController from "./stepper.controller"; +import timepickerController from "./timepicker.controller"; angular.module("app") .controller("AutocompleteCtrl", autocompleteController) @@ -21,6 +22,7 @@ angular.module("app") .controller("CriteriaAdderCtrl", criteriaAdderController) .controller("ChipsCtrl", chipsController) .controller("DatagridCtrl", datagridController) + .controller("DualListCtrl", dualListController) .controller("FieldCtrl", fieldController) .controller("InlineAdderCtrl", inlineAdderController) .controller("NavbarCtrl", navbarController) @@ -31,4 +33,4 @@ angular.module("app") .controller("SearchCtrl", searchController) .controller("SelectCtrl", selectController) .controller("StepperCtrl", stepperController) - .controller("DualListCtrl", dualListController); + .controller("TimepickerCtrl", timepickerController); diff --git a/src/ovh-ui-angular/controllers/timepicker.controller.js b/src/ovh-ui-angular/controllers/timepicker.controller.js new file mode 100644 index 0000000..fd9046a --- /dev/null +++ b/src/ovh-ui-angular/controllers/timepicker.controller.js @@ -0,0 +1,13 @@ +export default class { + onChange (modelValue) { + this.onChangeValue = modelValue; + } + + onClose (modelValue) { + this.onCloseValue = modelValue; + } + + onOpen (modelValue) { + this.onOpenValue = modelValue; + } +} diff --git a/src/ovh-ui-angular/ovh-ui-angular.config.json b/src/ovh-ui-angular/ovh-ui-angular.config.json index e3b9739..adab021 100644 --- a/src/ovh-ui-angular/ovh-ui-angular.config.json +++ b/src/ovh-ui-angular/ovh-ui-angular.config.json @@ -135,6 +135,10 @@ "tile": { "group": "components" }, + "timepicker": { + "controller": "TimepickerCtrl", + "group": "components" + }, "tooltip": { "group": "components" }