Skip to content
Snippets Groups Projects
Select Git revision
  • 22cf7552fa21903dba72bee8e4ee35902a34a0b4
  • development default
  • production protected
3 results

DatasetLoader.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    toggle.component.html 1.78 KiB
    <!-- <div class="field has-addons">
      <p class="control has-tooltip">
        <button
          class="button is-rounded has-tooltip"
          [pTooltip]="tooltipOn"
          [disabled]="disabled"
          [tooltipStyleClass]="'drgstn drgstn-tooltip'"
          tooltipPosition="top"
          [class.is-primary]="value"
          (click)="toggle(true)"
          [ngClass]="{ 'switch-small': drugstoneConfig.smallStyle }"
        >
          <span class="icon is-small">
            <i class="fa {{ iconOn }}"></i>
          </span>
          <span [ngClass]="{ 'text-small': drugstoneConfig.smallStyle }">{{ textOn }}</span>
        </button>
      </p>
      <p class="control">
        <button
          class="button is-rounded has-tooltip"
          [pTooltip]="tooltipOff"
          [disabled]="disabled"
          [tooltipStyleClass]="'drgstn drgstn-tooltip'"
          tooltipPosition="top"
          [class.is-primary]="!value"
          (click)="toggle(false)"
          [ngClass]="{ 'switch-small': drugstoneConfig.smallStyle }"
        >
          <span [ngClass]="{ 'text-small': drugstoneConfig.smallStyle }">{{ textOff }}</span>
          <span *ngIf="iconOff" class="icon is-small">
            <i class="fa {{ iconOff }}"></i>
          </span>
        </button>
      </p>
    </div> -->
    
    <button
      class="button is-rounded has-tooltip"
      [pTooltip]="tooltipOff"
      [tooltipStyleClass]="'drgstn drgstn-tooltip drgstn-tooltip-left'"
      tooltipPosition="left"
      (click)="toggle()"
      [ngClass]="{
        'is-primary': value,
        'switch-small': drugstoneConfig.smallStyle
      }"
    >
      <span *ngIf="icon" class="icon is-small">
        <i class="{{ icon }}"></i>
      </span>
      <span [ngClass]="{ 'text-small': drugstoneConfig.smallStyle }">{{
        textOn
      }}</span>
      <span *ngIf="!value" class="icon is-small">
        <i class="fa {{ iconOff }}"></i>
      </span>
      <span *ngIf="value" class="icon is-small">
        <i class="fa {{ iconOn }}"></i>
      </span>
    </button>