mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
17 lines
328 B
JavaScript
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;
|
|
}
|
|
}
|