1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00
portainer/app/portainer/components/box-selector/box-selector.controller.js

17 lines
328 B
JavaScript

export default class BoxSelectorController {
constructor() {
this.isChecked = this.isChecked.bind(this);
this.change = this.change.bind(this);
}
change(value) {
this.ngModel = value;
if (this.onChange) {
this.onChange(value);
}
}
isChecked(value) {
return this.ngModel === value;
}
}