MCPcopy
hub / github.com/fullcalendar/fullcalendar / render

Method render

packages/preact/src/component/Toolbar.tsx:15–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14export class Toolbar extends BaseComponent<ToolbarProps> {
15 render() {
16 let { props } = this
17 let options = this.context.options
18 let { sectionWidgets } = props.model
19
20 const { borderlessX, borderlessTop, borderlessBottom } = computeViewBorderless(options)
21 const toolbarClassOption = props.isHeader ? options.headerToolbarClass : options.footerToolbarClass
22
23 return (
24 <div
25 className={joinClassNames(
26 generateClassName(toolbarClassOption, { borderlessX, borderlessTop, borderlessBottom }),
27 generateClassName(options.toolbarClass, { borderlessX, borderlessTop, borderlessBottom }),
28 )}
29 >
30 {this.renderSection('start', sectionWidgets.start)}
31 {this.renderSection('center', sectionWidgets.center)}
32 {this.renderSection('end', sectionWidgets.end)}
33 </div>
34 )
35 }
36
37 renderSection(name: string, widgetGroups: ToolbarWidget[][]) {
38 let { props } = this

Callers

nothing calls this directly

Calls 4

renderSectionMethod · 0.95
computeViewBorderlessFunction · 0.90
joinClassNamesFunction · 0.90
generateClassNameFunction · 0.90

Tested by

no test coverage detected