MCPcopy Index your code
hub / github.com/plotly/dash / generateMarkdownMockData

Function generateMarkdownMockData

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

Source from the content-addressed store, hash-verified

95 ]);
96
97export const generateMarkdownMockData = (rows: number) =>
98 unpackIntoColumnsAndData([
99 {
100 id: 'markdown-headers',
101 name: ['', 'Headers'],
102 presentation: 'markdown',
103 data: gendata(i => '#'.repeat(i % 6) + ' row ' + i, rows)
104 },
105 {
106 id: 'markdown-italics',
107 name: ['Emphasis', 'Italics'],
108 presentation: 'markdown',
109 data: gendata(i => (i % 2 ? '*' + i + '*' : '_' + i + '_'), rows)
110 },
111 {
112 id: 'markdown-links',
113 name: ['', 'Links'],
114 presentation: 'markdown',
115 data: gendata(
116 i =>
117 '[Learn about ' +
118 i +
119 '](http://en.wikipedia.org/wiki/' +
120 i +
121 ')',
122 rows
123 )
124 },
125 {
126 id: 'markdown-lists',
127 name: ['', 'Lists'],
128 presentation: 'markdown',
129 data: gendata(
130 i =>
131 [
132 '1. Row number ' + i,
133 ' - subitem ' + i,
134 ' - subsubitem ' + i,
135 ' - subitem two ' + i,
136 '2. Next row ' + (i + 1)
137 ].join('\n'),
138 rows
139 )
140 },
141 {
142 id: 'markdown-tables',
143 name: ['', 'Tables'],
144 presentation: 'markdown',
145 data: gendata(
146 i =>
147 ['Current | Next', '--- | ---', i + ' | ' + (i + 1)].join(
148 '\n'
149 ),
150 rows
151 )
152 },
153 {
154 id: 'markdown-quotes',

Callers

nothing calls this directly

Calls 3

unpackIntoColumnsAndDataFunction · 0.85
gendataFunction · 0.85
repeatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…