MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / renderCheckbox

Method renderCheckbox

core/src/components/alert/alert.tsx:582–621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

renderAlertInputsMethod · 0.95

Calls 3

cbClickMethod · 0.95
getIonModeFunction · 0.90
getClassMapFunction · 0.90

Tested by

no test coverage detected