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

Function getModeState

components/dash-table/demo/AppMode.ts:393–425  ·  view source on GitHub ↗
(mode: string | null)

Source from the content-addressed store, hash-verified

391}
392
393function getModeState(mode: string | null) {
394 switch (mode) {
395 case AppMode.Actionable:
396 return getActionableState();
397 case AppMode.Date:
398 return getDateState();
399 case AppMode.Formatting:
400 return getFormattingState();
401 case AppMode.Markdown:
402 return getDefaultMarkdownState();
403 case AppMode.MixedMarkdown:
404 return getDefaultMixedMarkdownState();
405 case AppMode.ReadOnly:
406 return getReadonlyState();
407 case AppMode.SomeReadOnly:
408 return getSomeReadonlyState();
409 case AppMode.ColumnsInSpace:
410 return getSpaceInColumn();
411 case AppMode.Tooltips:
412 return getTooltipsState();
413 case AppMode.Virtualized:
414 return getVirtualizedState();
415 case AppMode.Typed:
416 return getTypedState();
417 case AppMode.SingleHeaders:
418 return getSingleHeaderState();
419 case AppMode.TaleOfTwoTables:
420 return getActionableState();
421 case AppMode.Default:
422 default:
423 return getDefaultState();
424 }
425}
426
427function getState() {
428 const mode = Environment.searchParams.get('mode');

Callers 1

getStateFunction · 0.85

Calls 13

getActionableStateFunction · 0.85
getDateStateFunction · 0.85
getFormattingStateFunction · 0.85
getDefaultMarkdownStateFunction · 0.85
getReadonlyStateFunction · 0.85
getSomeReadonlyStateFunction · 0.85
getSpaceInColumnFunction · 0.85
getTooltipsStateFunction · 0.85
getVirtualizedStateFunction · 0.85
getTypedStateFunction · 0.85
getSingleHeaderStateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…