MCPcopy Create free account
hub / github.com/editablejs/editable / renderColgroup

Function renderColgroup

packages/plugins/table/src/components/table.tsx:117–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 const { colsWidth = [] } = element
116
117 const renderColgroup = () => {
118 const colgroup = []
119 for (let i = 0; i < colsWidth.length; i++) {
120 colgroup.push(<col width={colsWidth[i]} key={i} />)
121 }
122 return colgroup.length > 0 ? <colgroup>{colgroup}</colgroup> : null
123 }
124 // table width
125 const tableWidth = React.useMemo(() => {
126 let width = 0

Callers 1

TableComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…