From d8dd797dad385d49a3eb0229a606aaac78780199 Mon Sep 17 00:00:00 2001 From: Marie JONES Date: Fri, 19 Oct 2018 11:20:49 +0200 Subject: [PATCH] feat(oui-select): allow options to be disabled --- src/ovh-ui-angular/controllers/select.controller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ovh-ui-angular/controllers/select.controller.js b/src/ovh-ui-angular/controllers/select.controller.js index 06619a2..140f2c6 100644 --- a/src/ovh-ui-angular/controllers/select.controller.js +++ b/src/ovh-ui-angular/controllers/select.controller.js @@ -33,6 +33,10 @@ export default class SelectController { }); } + disableItems ($item) { + return this.countries.indexOf($item) % 2 === 1; + } + onFocus () { this.onFocusCounter++; }