MCPcopy
hub / github.com/streamlit/streamlit / getIntValue

Method getIntValue

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

Source from the content-addressed store, hash-verified

550 }
551
552 public getIntValue(widget: WidgetInfo): number | undefined {
553 const state = this.getWidgetState(widget)
554 if (notNullOrUndefined(state) && state.value === "intValue") {
555 return requireNumberInt(state.intValue as number)
556 }
557
558 return undefined
559 }
560
561 public setIntValue(
562 widget: WidgetInfo,

Callers 3

getStateFromWidgetMgrFunction · 0.80
getStateFromWidgetMgrFunction · 0.80

Calls 3

getWidgetStateMethod · 0.95
notNullOrUndefinedFunction · 0.90
requireNumberIntFunction · 0.85

Tested by

no test coverage detected