From 7364b1640779cf1851e787f473ff1366ea1b519a Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 8 Nov 2024 11:26:58 +0100 Subject: [PATCH] Document as_int in NumberSelector --- source/_docs/blueprint/selectors.markdown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/_docs/blueprint/selectors.markdown b/source/_docs/blueprint/selectors.markdown index ca4ed195ee7..9e0845f720d 100644 --- a/source/_docs/blueprint/selectors.markdown +++ b/source/_docs/blueprint/selectors.markdown @@ -1085,10 +1085,17 @@ mode: type: string required: false default: slider +as_int: + description: Force the resulting number into an integer. + type: bool + required: false {% endconfiguration %} The output of this selector is a number, for example: `42` +Please note that the user input is never rounded, regardless of the step, +and will always return a float unless `as_int` is set to `True`. + ### Example number selectors An example number selector that allows a user a percentage, directly in a