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

Method render

core/src/components/picker-legacy/picker.tsx:354–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352 };
353
354 render() {
355 const { htmlAttributes } = this;
356 const mode = getIonMode(this);
357 return (
358 <Host
359 aria-modal="true"
360 tabindex="-1"
361 {...(htmlAttributes as any)}
362 style={{
363 zIndex: `${20000 + this.overlayIndex}`,
364 }}
365 class={{
366 [mode]: true,
367
368 // Used internally for styling
369 [`picker-${mode}`]: true,
370 'overlay-hidden': true,
371 ...getClassMap(this.cssClass),
372 }}
373 onIonBackdropTap={this.onBackdropTap}
374 onIonPickerWillDismiss={this.dispatchCancelHandler}
375 >
376 <ion-backdrop visible={this.showBackdrop} tappable={this.backdropDismiss}></ion-backdrop>
377
378 <div tabindex="0" aria-hidden="true"></div>
379
380 <div class="picker-wrapper ion-overlay-wrapper" role="dialog">
381 <div class="picker-toolbar">
382 {this.buttons.map((b) => (
383 <div class={buttonWrapperClass(b)}>
384 <button type="button" onClick={() => this.buttonClick(b)} class={buttonClass(b)}>
385 {b.text}
386 </button>
387 </div>
388 ))}
389 </div>
390
391 <div class="picker-columns">
392 <div class="picker-above-highlight"></div>
393 {this.presented && this.columns.map((c) => <ion-picker-legacy-column col={c}></ion-picker-legacy-column>)}
394 <div class="picker-below-highlight"></div>
395 </div>
396 </div>
397
398 <div tabindex="0" aria-hidden="true"></div>
399 </Host>
400 );
401 }
402}
403
404const buttonWrapperClass = (button: PickerButton): CssClassMap => {

Callers

nothing calls this directly

Calls 5

buttonClickMethod · 0.95
getIonModeFunction · 0.90
getClassMapFunction · 0.90
buttonWrapperClassFunction · 0.85
buttonClassFunction · 0.70

Tested by

no test coverage detected