selectable property

  1. @HostBinding.new('class.selectable')
bool get selectable

Implementation

@HostBinding('class.selectable')
bool get selectable => _selectable;
  1. @Input.new()
set selectable (bool selectable)

Whether the selection state of the scorecard can be changed by clicking.

Implementation

@Input()
set selectable(bool selectable) {
  _selectable = selectable;

  // Normally OnPush will markForCheck() automatically when an input changes.
  // However, that's only if the input changes within the Angular zone.
  // Scoreboard changes this input outside of the Angular zone, so we
  // explicitly markForCheck() here to cover that case.
  _changeDetector.markForCheck();
}