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

Method render

core/src/components/segment/segment.tsx:708–726  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

706 }
707
708 render() {
709 const mode = getIonMode(this);
710 return (
711 <Host
712 role="tablist"
713 onClick={this.onClick}
714 class={createColorClasses(this.color, {
715 [mode]: true,
716 'in-toolbar': hostContext('ion-toolbar', this.el),
717 'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
718 'segment-activated': this.activated,
719 'segment-disabled': this.disabled,
720 'segment-scrollable': this.scrollable,
721 })}
722 >
723 <slot onSlotchange={this.onSlottedItemsChange}></slot>
724 </Host>
725 );
726 }
727}

Callers

nothing calls this directly

Calls 3

getIonModeFunction · 0.90
createColorClassesFunction · 0.90
hostContextFunction · 0.90

Tested by

no test coverage detected