MCPcopy
hub / github.com/streamlit/streamlit / getBoolValue

Method getBoolValue

frontend/lib/src/WidgetStateManager.ts:532–539  ·  view source on GitHub ↗
(widget: WidgetInfo)

Source from the content-addressed store, hash-verified

530 }
531
532 public getBoolValue(widget: WidgetInfo): boolean | undefined {
533 const state = this.getWidgetState(widget)
534 if (notNullOrUndefined(state) && state.value === "boolValue") {
535 return state.boolValue as boolean
536 }
537
538 return undefined
539 }
540
541 public setBoolValue(
542 widget: WidgetInfo,

Callers 2

getStateFromWidgetMgrFunction · 0.80

Calls 2

getWidgetStateMethod · 0.95
notNullOrUndefinedFunction · 0.90

Tested by

no test coverage detected