Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

625 B
Raw Blame
@for (option of options; track option) {
  <label
    [ngClass]="{ 'button': true, '-disabled': disabled, 'form--field-inline-button': true, '-active': value === option.value, 'spot-toggle--button': true }"
    data-test-selector="spot-toggle--option"
    [attr.data-qa-disabled]="disabled || undefined"
    [attr.data-qa-active-toggle]="value === option.value"
    >
    <input
      class="spot-toggle--option-input"
      type="radio"
      [disabled]="disabled"
      [name]="name"
      [value]="option.value"
      [ngModel]="value"
      (ngModelChange)="onToggle($event)"
      />
    {{ option.title }}
  </label>
}