Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit 3a79d6d

Browse files
marie-jAxelPeter
authored andcommitted
feat(oui-select): allow options to be disabled (#165)
1 parent aeb9556 commit 3a79d6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ovh-ui-angular/controllers/select.controller.js

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export default class SelectController {
3333
});
3434
}
3535

36+
disableItems ($item) {
37+
return this.countries.indexOf($item) % 2 === 1;
38+
}
39+
3640
onFocus () {
3741
this.onFocusCounter++;
3842
}

0 commit comments

Comments
 (0)