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 `__: +- `GRAP `__: - - Quentin DUPONT + - Quentin DUPONT -- `Tecnativa `__: +- `Tecnativa `__: - - Alexandre Díaz - - Carlos Roca + - Alexandre Díaz + - Carlos Roca -- Helly kapatel -- Thanakrit Pintana -- Dhara Solanki +- Helly kapatel +- Thanakrit Pintana +- Dhara Solanki Maintainers ----------- diff --git a/web_widget_numeric_step/readme/USAGE.md b/web_widget_numeric_step/readme/USAGE.md index e95f2e4dc..5d5e2d88b 100644 --- a/web_widget_numeric_step/readme/USAGE.md +++ b/web_widget_numeric_step/readme/USAGE.md @@ -23,6 +23,7 @@ Example for an 0.25 step, min to -1 and max to 10 : - 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** diff --git a/web_widget_numeric_step/static/description/index.html b/web_widget_numeric_step/static/description/index.html index 8c4844864..3f42d54ce 100644 --- a/web_widget_numeric_step/static/description/index.html +++ b/web_widget_numeric_step/static/description/index.html @@ -411,6 +411,7 @@ values).

  • 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

    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). -->