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

Method getButtons

core/src/components/toast/toast.tsx:475–483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473 }
474
475 private getButtons(): ToastButton[] {
476 const buttons = this.buttons
477 ? this.buttons.map((b) => {
478 return typeof b === 'string' ? { text: b } : b;
479 })
480 : [];
481
482 return buttons;
483 }
484
485 /**
486 * Returns the element specified by the positionAnchor prop,

Callers 2

ToastClass · 0.95
renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected