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

Function getDefaultState

components/dash-table/demo/AppMode.ts:114–135  ·  view source on GitHub ↗
(generateData: Function = generateMockData)

Source from the content-addressed store, hash-verified

112}
113
114function getDefaultState(generateData: Function = generateMockData): {
115 filter_query: string;
116 tableProps: Partial<PropsWithDefaults>;
117} {
118 const mock = generateData(5000);
119
120 return {
121 filter_query: '',
122 tableProps: R.mergeRight(getBaseTableProps(mock), {
123 data: mock.data,
124 editable: true,
125 sort_action: TableAction.Native,
126 fill_width: false,
127 fixed_rows: {headers: true},
128 fixed_columns: {headers: true},
129 merge_duplicate_headers: false,
130 row_deletable: true,
131 row_selectable: 'single',
132 page_action: TableAction.Native
133 }) as Partial<PropsWithDefaults>
134 };
135}
136
137function getDefaultMarkdownState() {
138 const state = getDefaultState(generateMarkdownMockData);

Callers 11

getDefaultMarkdownStateFunction · 0.85
getReadonlyStateFunction · 0.85
getSomeReadonlyStateFunction · 0.85
getSpaceInColumnFunction · 0.85
getTooltipsStateFunction · 0.85
getTypedStateFunction · 0.85
getSingleHeaderStateFunction · 0.85
getActionableStateFunction · 0.85
getFormattingStateFunction · 0.85
getModeStateFunction · 0.85

Calls 1

getBaseTablePropsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…