MCPcopy Create free account
hub / github.com/plotly/dash / generateMixedMarkdownMockData

Function generateMixedMarkdownMockData

components/dash-table/demo/data.ts:193–233  ·  view source on GitHub ↗
(rows: number)

Source from the content-addressed store, hash-verified

191 ]);
192
193export const generateMixedMarkdownMockData = (rows: number) =>
194 unpackIntoColumnsAndData([
195 {
196 id: 'not-markdown-column',
197 name: ['Not Markdown'],
198 editable: true,
199 data: gendata(_ => 'this is not a markdown cell', rows)
200 },
201 {
202 id: 'markdown-column',
203 name: ['Markdown'],
204 type: ColumnType.Text,
205 presentation: 'markdown',
206 data: gendata(
207 i =>
208 [
209 '```javascript',
210 ...(i % 2 === 0
211 ? ['console.warn("this is a markdown cell")']
212 : [
213 'console.log("logging things")',
214 'console.warn("this is a markdown cell")'
215 ]),
216 '```'
217 ].join('\n'),
218 rows
219 )
220 },
221 {
222 id: 'also-not-markdown-column',
223 name: ['Also Not Markdown'],
224 editable: false,
225 data: gendata(i => i, rows)
226 },
227 {
228 id: 'also-also-not-markdown-column',
229 name: ['Also Also Not Markdown'],
230 editable: true,
231 data: gendata(_ => 'this is also also not a markdown cell', rows)
232 }
233 ]);
234
235export const generateSpaceMockData = (rows: number) =>
236 unpackIntoColumnsAndData([

Callers

nothing calls this directly

Calls 2

unpackIntoColumnsAndDataFunction · 0.85
gendataFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…