MCPcopy
hub / github.com/marimo-team/marimo / getMeta

Function getMeta

frontend/src/components/data-table/columns.tsx:140–161  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

138 const typesByColumn = Maps.keyBy(fieldTypes, (entry) => entry[0]);
139
140 const getMeta = (key: string) => {
141 const types = typesByColumn.get(key)?.[1];
142 const isRowHeader = rowHeadersSet.has(key);
143
144 if (isRowHeader || !types) {
145 const types = rowHeaders.find(([columnName]) => columnName === key)?.[1];
146 return {
147 rowHeader: isRowHeader,
148 dtype: types?.[1],
149 dataType: types?.[0],
150 minFractionDigits: fractionDigitsByColumn?.[key],
151 };
152 }
153
154 return {
155 rowHeader: isRowHeader,
156 filterType: getFilterTypeForFieldType(types[0]),
157 dtype: types[1],
158 dataType: types[0],
159 minFractionDigits: fractionDigitsByColumn?.[key],
160 };
161 };
162
163 const getJustify = (key: string): "left" | "center" | "right" | undefined => {
164 // Explicit user override takes precedence

Callers 2

getJustifyFunction · 0.85
generateColumnsFunction · 0.85

Calls 4

getMethod · 0.65
hasMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…