NGO-DB/ndb-core

View on GitHub
src/app/child-dev-project/notes/notes-manager/notes-manager.component.html

Summary

Maintainability
Test Coverage
<app-entity-list
  [allEntities]="notes"
  [entityConstructor]="entityConstructor"
  clickMode="none"
  (elementClick)="showDetails($event)"
  (addNewClick)="addNoteClick()"
  [defaultSort]="defaultSort"
  [exportConfig]="exportConfig"
  [showInactive]="showInactive"
  [title]="title"
  [columns]="columns"
  [columnGroups]="columnGroups"
  [filters]="filters"
>
  <button
    mat-menu-item
    *ngIf="showEventNotesToggle"
    (click)="updateIncludeEvents()"
    angulartics2On="click"
    angularticsCategory="Note"
    angularticsAction="include_events_toggle"
    [angularticsLabel]="includeEventNotes ? 'off' : 'on'"
    i18n="
      Slider that allows a user to also include events|events are related to a
      child
    "
  >
    <app-fa-dynamic-icon
      [icon]="includeEventNotes ? 'toggle-on' : 'toggle-off'"
      class="standard-icon-with-text color-accent"
    ></app-fa-dynamic-icon>
    Include events
  </button>
</app-entity-list>