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

Method render

core/src/components/toolbar/toolbar.tsx:88–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 render() {
89 const mode = getIonMode(this);
90 const childStyles = {};
91 this.childrenStyles.forEach((value) => {
92 Object.assign(childStyles, value);
93 });
94 return (
95 <Host
96 class={{
97 ...childStyles,
98 ...createColorClasses(this.color, {
99 [mode]: true,
100 'in-toolbar': hostContext('ion-toolbar', this.el),
101 }),
102 }}
103 >
104 <div class="toolbar-background" part="background"></div>
105 <div class="toolbar-container" part="container">
106 <slot name="start"></slot>
107 <slot name="secondary"></slot>
108 <div class="toolbar-content" part="content">
109 <slot></slot>
110 </div>
111 <slot name="primary"></slot>
112 <slot name="end"></slot>
113 </div>
114 </Host>
115 );
116 }
117}

Callers

nothing calls this directly

Calls 3

getIonModeFunction · 0.90
createColorClassesFunction · 0.90
hostContextFunction · 0.90

Tested by

no test coverage detected