def bind_calculator_data(
self,
question_text: str = None,
question_type: str = None,
context_text: str = None,
image: str = None,
answers_raw: str = None,
fallback_value: str = None
)
python
ArgumentsType hintDescription
selfFlourishReturns the Flourish object
question_textstr, optionalQuestion text. The question text. Flourish type hint: column
question_typestr, optionalQuestion type. The type of question. Choose from number input, text input, single response buttons, multi response buttons, dropdown, single date picker, range date picker, multi date picker, rating, single slider or range slider. Leave empty to just display text. Flourish type hint: column
context_textstr, optionalQuestion context. Additional information. Flourish type hint: column
imagestr, optionalImage. Question background image. Add an image URL or right-click on a cell to upload an image. Flourish type hint: column
answers_rawstr, optionalAnswers. Answer values separated by "::". Required for single and multi-response buttons, dropdown and rating questions. Rating answers can take optional labels per value noted as "Value >> Label" - for example, "1 >> Bad :: 2 :: 3 >> Good". Number inputs can take range specifications in the format "min: 0 :: max: 50 :: step: 2". Slider inputs can take slider specifications in the format "min: 0 :: max: 100 :: value: 10". Use two comma separated values for range sliders, eg.: "value: 1, 100". See the templates documentation for additional info. Flourish type hint: column
fallback_valuestr, optionalFallback value. Fallback value to fill the answer input if left empty by the user. Works for all question types but sliders, which will always show the initial value. Flourish type hint: column