diff --git a/web_widget_numeric_step/README.rst b/web_widget_numeric_step/README.rst
index 109481f07..3cb1c56ae 100644
--- a/web_widget_numeric_step/README.rst
+++ b/web_widget_numeric_step/README.rst
@@ -63,12 +63,13 @@ Example for an 0.25 step, min to -1 and max to 10 :
**Available Options**
-- step > Amount to increase/decrease (default: 1.0)
-- min > Min. value allowed (default: no limit)
-- max > Max. value allowed (default: no limit)
-- auto_select > Select the content when the element get focus (default:
- False)
-- placeholder > Define the placeholder text (default: None)
+- step > Amount to increase/decrease (default: 1.0)
+- min > Min. value allowed (default: no limit)
+- max > Max. value allowed (default: no limit)
+- auto_select > Select the content when the element get focus (default:
+ False)
+- placeholder > Define the placeholder text (default: None)
+- class > Define additional classes for the input (default: None)
**Examples**
@@ -121,18 +122,18 @@ Authors
Contributors
------------
-- `GRAP
Examples
Iteration with 0.25 step, min to -1 and max to 10.
diff --git a/web_widget_numeric_step/static/src/numeric_step.esm.js b/web_widget_numeric_step/static/src/numeric_step.esm.js index 25c76db7a..002591b87 100644 --- a/web_widget_numeric_step/static/src/numeric_step.esm.js +++ b/web_widget_numeric_step/static/src/numeric_step.esm.js @@ -62,6 +62,7 @@ NumericStep.props = { min: {type: Number, optional: true}, max: {type: Number, optional: true}, placeholder: {type: String, optional: true}, + additional_class: {type: String, optional: true}, }; NumericStep.defaultProps = { ...FloatField.defaultProps, @@ -80,6 +81,7 @@ export const numericStep = { min: options.min, max: options.max, placeholder: attrs.placeholder, + additional_class: attrs.class, }; }, }; diff --git a/web_widget_numeric_step/static/src/numeric_step.xml b/web_widget_numeric_step/static/src/numeric_step.xml index 51c4b05ad..f6aa28637 100644 --- a/web_widget_numeric_step/static/src/numeric_step.xml +++ b/web_widget_numeric_step/static/src/numeric_step.xml @@ -6,7 +6,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->