()
| 580 | } |
| 581 | |
| 582 | private renderCheckbox() { |
| 583 | const inputs = this.processedInputs; |
| 584 | const mode = getIonMode(this); |
| 585 | |
| 586 | if (inputs.length === 0) { |
| 587 | return null; |
| 588 | } |
| 589 | |
| 590 | return ( |
| 591 | <div class="alert-checkbox-group"> |
| 592 | {inputs.map((i) => ( |
| 593 | <button |
| 594 | type="button" |
| 595 | onClick={() => this.cbClick(i)} |
| 596 | aria-checked={`${i.checked}`} |
| 597 | id={i.id} |
| 598 | disabled={i.disabled} |
| 599 | tabIndex={i.tabindex} |
| 600 | role="checkbox" |
| 601 | class={{ |
| 602 | ...getClassMap(i.cssClass), |
| 603 | 'alert-tappable': true, |
| 604 | 'alert-checkbox': true, |
| 605 | 'alert-checkbox-button': true, |
| 606 | 'ion-focusable': true, |
| 607 | 'alert-checkbox-button-disabled': i.disabled || false, |
| 608 | }} |
| 609 | > |
| 610 | <div class="alert-button-inner"> |
| 611 | <div class="alert-checkbox-icon"> |
| 612 | <div class="alert-checkbox-inner"></div> |
| 613 | </div> |
| 614 | <div class="alert-checkbox-label">{i.label}</div> |
| 615 | </div> |
| 616 | {mode === 'md' && <ion-ripple-effect></ion-ripple-effect>} |
| 617 | </button> |
| 618 | ))} |
| 619 | </div> |
| 620 | ); |
| 621 | } |
| 622 | |
| 623 | private renderRadio() { |
| 624 | const inputs = this.processedInputs; |
no test coverage detected