Skip to content
Snippets Groups Projects
Select Git revision
  • cc102e81f9fda698de99656882f70cbcb5524ad5
  • master default protected
  • csv_export
  • ndex
  • v1.1.18-rc2
  • v1.1.17
  • v1.1.16
  • v1.1.16-rc12
  • v1.1.16-rc11
  • v1.1.16-rc10
  • v1.1.16-rc9
  • v1.1.16-rc8
  • v1.1.16-rc7
  • v1.1.16-rc4
  • v1.1.16-rc3
  • v1.1.16-rc1
  • v1.1.6-rc1
  • v1.1.15
  • v1.1.15-rc7
  • v1.1.15-rc6
  • v1.1.15-rc3
  • v1.1.15-rc1
  • v1.1.14
  • v1.1.13
24 results

toggle.component.html

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>